Class JWTAuthHandler

    • Constructor Detail

      • JWTAuthHandler

        public JWTAuthHandler​(Object delegate)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • create

        public static JWTAuthHandler create​(JWTAuth authProvider)
        Create a JWT auth handler
        Parameters:
        authProvider - the auth provider to use
        Returns:
        the auth handler
      • create

        public static JWTAuthHandler create​(JWTAuth authProvider,
                                            String realm)
        Create a JWT auth handler
        Parameters:
        authProvider - the auth provider to use
        realm -
        Returns:
        the auth handler
      • scopeDelimiter

        public JWTAuthHandler scopeDelimiter​(String delimiter)
        Return a new instance with the internal state copied from the caller but the scopes delimiter set to be unique to the instance.
        Parameters:
        delimiter - scope delimiter.
        Returns:
        new instance of this interface.
      • withScope

        public JWTAuthHandler withScope​(String scope)
        Return a new instance with the internal state copied from the caller but the scopes to be requested during a token request are unique to the instance.
        Parameters:
        scope - scope.
        Returns:
        new instance of this interface.
      • withScopes

        public JWTAuthHandler withScopes​(List<String> scopes)
        Return a new instance with the internal state copied from the caller but the scopes to be requested during a token request are unique to the instance.
        Parameters:
        scopes - scopes.
        Returns:
        new instance of this interface.