Interface HttpOauth2FileAuthorizationMechanismCfg

    • Method Detail

      • addHttpOauth2FileAuthorizationMechanismChangeListener

        void addHttpOauth2FileAuthorizationMechanismChangeListener​(ConfigurationChangeListener<HttpOauth2FileAuthorizationMechanismCfg> listener)
        Register to be notified when this HTTP OAuth2 File Based Authorization Mechanism is changed.
        Parameters:
        listener - The HTTP OAuth2 File Based Authorization Mechanism configuration change listener.
      • removeHttpOauth2FileAuthorizationMechanismChangeListener

        void removeHttpOauth2FileAuthorizationMechanismChangeListener​(ConfigurationChangeListener<HttpOauth2FileAuthorizationMechanismCfg> listener)
        Deregister an existing HTTP OAuth2 File Based Authorization Mechanism configuration change listener.
        Parameters:
        listener - The HTTP OAuth2 File Based Authorization Mechanism configuration change listener.
      • getAccessTokenDirectory

        String getAccessTokenDirectory()
        Gets the "access-token-directory" property.

        Directory containing token files. File names must be equal to the token strings. The file content must a JSON object with the following attributes: 'scope', 'expireTime' and all the field(s) needed to resolve the authzIdTemplate.

        Default value: oauth2-demo/

        Returns:
        Returns the value of the "access-token-directory" property.
      • getJavaClass

        String getJavaClass()
        Gets the "java-class" property.

        Specifies the fully-qualified name of the Java class that provides the HTTP OAuth2 File Based Authorization Mechanism implementation.

        Default value: org.opends.server.protocols.http.authz.HttpOAuth2FileAuthorizationMechanism

        Specified by:
        getJavaClass in interface HttpAuthorizationMechanismCfg
        Returns:
        Returns the value of the "java-class" property.