Package io.bdeploy.common.security
Class ApiAccessToken
java.lang.Object
io.bdeploy.common.security.ApiAccessToken
Represents a secure access token. Whoever has a correctly signed token of
this type has access to the remote API.
A token may be weak, in which case it allows access only to endpoints which allow weak tokens explicitly.
This mechanism is used to provide tokens which are allowed solely for automated applications like the client launcher, so it can fetch updates and applications.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SYSTEM_USER
- See Also:
-
ADMIN_PERMISSION
-
-
Constructor Details
-
ApiAccessToken
public ApiAccessToken()
-
-
Method Details
-
getIssuedTo
-
isValid
public boolean isValid() -
isWeak
public boolean isWeak() -
isSystem
public boolean isSystem() -
getPermissions
-