Class JWTAuthHandler

    • Field Detail

      • __TYPE_ARG

        public static final io.vertx.lang.rx.TypeArg<JWTAuthHandler> __TYPE_ARG
    • 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. When no scopes are explicit declared, the default scopes will be looked up from the route metadata.
        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. When no scopes are explicit declared, the default scopes will be looked up from the route metadata.
        Parameters:
        authProvider - the auth provider to use
        realm -
        Returns:
        the auth handler
      • scopeDelimiter

        public JWTAuthHandler scopeDelimiter​(String delimiter)
        Set the scope delimiter. By default this is a space character.
        Parameters:
        delimiter - scope delimiter.
        Returns:
        fluent self.
      • 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. When scopes are applied to the handler, the default scopes from the route metadata will be ignored.
        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. When scopes are applied to the handler, the default scopes from the route metadata will be ignored.
        Parameters:
        scopes - scopes.
        Returns:
        new instance of this interface.