Package org.radarbase.auth.token
Interface RadarToken
-
- All Implemented Interfaces:
public interface RadarToken
Created by dverbeec on 10/01/2018.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
RadarToken.Companion
-
Method Summary
Modifier and Type Method Description abstract RadarToken
copyWithRoles(Set<AuthorityReference> roles)
abstract Set<AuthorityReference>
getRoles()
Get all roles defined in this token. abstract Set<String>
getScopes()
Get a list of scopes assigned to this token. abstract List<String>
getSources()
Get a list of source names associated with this token. abstract String
getGrantType()
Get this token's OAuth2 grant type. abstract String
getSubject()
Get the token subject. abstract String
getUsername()
Get the token username. abstract Instant
getIssuedAt()
Get the date this token was issued. abstract Instant
getExpiresAt()
Get the date this token expires. abstract List<String>
getAudience()
Get the audience of the token. abstract String
getToken()
Get a string representation of this token. abstract String
getIssuer()
Get the issuer. abstract String
getType()
Get the token type. abstract String
getClientId()
Client that the token is associated to. Boolean
isClientCredentials()
-
-
Method Detail
-
copyWithRoles
abstract RadarToken copyWithRoles(Set<AuthorityReference> roles)
-
getRoles
abstract Set<AuthorityReference> getRoles()
Get all roles defined in this token.
-
getSources
abstract List<String> getSources()
Get a list of source names associated with this token.
-
getGrantType
abstract String getGrantType()
Get this token's OAuth2 grant type.
-
getSubject
abstract String getSubject()
Get the token subject.
-
getUsername
abstract String getUsername()
Get the token username.
-
getIssuedAt
abstract Instant getIssuedAt()
Get the date this token was issued.
-
getExpiresAt
abstract Instant getExpiresAt()
Get the date this token expires.
-
getAudience
abstract List<String> getAudience()
Get the audience of the token.
-
getClientId
abstract String getClientId()
Client that the token is associated to.
-
isClientCredentials
Boolean isClientCredentials()
-
-
-
-