Package org.radarbase.auth.token
Interface RadarToken
-
- All Implemented Interfaces:
public interface RadarTokenCreated by dverbeec on 10/01/2018.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classRadarToken.Companion
-
Method Summary
Modifier and Type Method Description abstract RadarTokencopyWithRoles(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 StringgetGrantType()Get this token's OAuth2 grant type. abstract StringgetSubject()Get the token subject. abstract StringgetUsername()Get the token username. abstract InstantgetIssuedAt()Get the date this token was issued. abstract InstantgetExpiresAt()Get the date this token expires. abstract List<String>getAudience()Get the audience of the token. abstract StringgetToken()Get a string representation of this token. abstract StringgetIssuer()Get the issuer. abstract StringgetType()Get the token type. abstract StringgetClientId()Client that the token is associated to. BooleanisClientCredentials()-
-
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()
-
-
-
-