Class ApiAccessToken

java.lang.Object
io.bdeploy.common.security.ApiAccessToken

public class ApiAccessToken extends Object
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.

  • Field Details

  • Constructor Details

    • ApiAccessToken

      public ApiAccessToken()
  • Method Details

    • getIssuedTo

      public String getIssuedTo()
    • isValid

      public boolean isValid()
    • isWeak

      public boolean isWeak()
    • isSystem

      public boolean isSystem()
    • getPermissions

      public Collection<ScopedPermission> getPermissions()