Interface RestTokenProvider<T>
-
@SupportedAll public 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonValue
createToken(RestTokenProviderParameters<T> restTokenProviderParameters)
Creates a token using the specifiedRestTokenProviderParameters
-
-
-
Method Detail
-
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
-
-