Interface RestTokenProvider<T>
Interface defining token creators in the rest-sts. The generic type T corresponds to a class
which provides the state necessary to produce a token of the specified type. The creation of any
specific token (SAML2, OIDC) requires specific state which cannot be subsumed in a specific type.
-
Method Summary
Modifier and TypeMethodDescriptioncreateToken(RestTokenProviderParameters<T> restTokenProviderParameters) Creates a token using the specifiedRestTokenProviderParameters
-
Method Details
-
createToken
JsonValue createToken(RestTokenProviderParameters<T> restTokenProviderParameters) throws TokenCreationException Creates a token using the specifiedRestTokenProviderParameters- Parameters:
restTokenProviderParameters- the parameters necessary to create a token of a specific type- Returns:
- the JsonValue corresponding to the created token
- Throws:
TokenCreationException- if the token could not be created
-