public interface Token
Represents a token credential.
Basically, a token is a self-contained repository for identities and claims for a particular subject.
Each token type has its own Token.Provider
and Token.Consumer
.
The first is responsible for manage a specific token type (eg.: issue, renew, invalidate, etc). The latter is responsible for
consume a specific token type, providing to clients all the necessary code to properly handle a specific token type.
Token.Provider
,
Token.Consumer
,
TokenCredential
,
TokenCredentialHandler
Modifier and Type | Interface and Description |
---|---|
static class |
Token.Builder |
static interface |
Token.Consumer<T extends Token>
Token consumers are responsible to provide all the necessary support to consume information from a specific
Token . |
static interface |
Token.Provider<T extends Token>
Token providers are responsible to provide some importantant management operations for a specific
Token type. |
String getType()
Returns the type of the token.
String getSubject()
Returns the subject identifier. The identifier usually represents a unique and never reassigned identifier within the Issuer for the End-User. Which is intended to be consumed by the Client.
String getToken()
Returns the string representation of a token.
Copyright © 2018 JBoss by Red Hat. All rights reserved.