Interface SecurityToken
- All Superinterfaces:
SecurityActor,UserIdRelated
- All Known Implementing Classes:
AuthenticatedToken
A token based actor.
-
Method Summary
Modifier and TypeMethodDescriptionGet an optional security policy.getToken()Get the token value.Get the type of token.Get a unique user ID that owns the token.Methods inherited from interface net.solarnetwork.central.security.SecurityActor
isAuthenticatedWithToken
-
Method Details
-
getUserId
Long getUserId()Get a unique user ID that owns the token.- Specified by:
getUserIdin interfaceUserIdRelated- Returns:
- the user ID
-
getToken
String getToken()Get the token value.- Returns:
- the token
-
getTokenType
SecurityTokenType getTokenType()Get the type of token.- Returns:
- the token type
-
getPolicy
SecurityPolicy getPolicy()Get an optional security policy.- Returns:
- optional security policy
-