Interface TokenProvider

All Known Implementing Classes:
JWTTokenProvider, SAMLTokenProvider, SCTProvider

public interface TokenProvider
An interface that can provide a security token.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType
    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
    Create a token given a TokenProviderParameters
  • Method Details

    • 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