Class TokenProviderCallback

  • All Implemented Interfaces:
    javax.security.auth.callback.Callback

    public class TokenProviderCallback
    extends java.lang.Object
    implements javax.security.auth.callback.Callback
    Callback implementation to set and retrieve a login token provider.
    • Constructor Detail

      • TokenProviderCallback

        public TokenProviderCallback()
    • Method Detail

      • getTokenProvider

        public TokenProvider getTokenProvider()
        Returns the token provider as set using setTokenProvider(TokenProvider) or null.
        Returns:
        an instance of TokenProvider or null if no provider has been set before.
      • setTokenProvider

        public void setTokenProvider​(TokenProvider tokenProvider)
        Sets the TokenProvider that is being used during the authentication process.
        Parameters:
        tokenProvider - The TokenProvider to use during the authentication process.