Interface TokenProvider
-
- All Known Implementing Classes:
JWTTokenProvider,SAMLTokenProvider,SCTProvider
public interface TokenProviderAn interface that can provide a security token.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandleToken(String tokenType)Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenTypebooleancanHandleToken(String tokenType, String realm)Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realmTokenProviderResponsecreateToken(TokenProviderParameters tokenParameters)Create a token given a TokenProviderParameters
-
-
-
Method Detail
-
canHandleToken
boolean canHandleToken(String tokenType)
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType
-
canHandleToken
boolean canHandleToken(String tokenType, String realm)
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm
-
createToken
TokenProviderResponse createToken(TokenProviderParameters tokenParameters)
Create a token given a TokenProviderParameters
-
-