Class HTTPOauth2FileAuthorizationMechanismCfgDefn


  • public final class HTTPOauth2FileAuthorizationMechanismCfgDefn
    extends ManagedObjectDefinition<HTTPOauth2FileAuthorizationMechanismCfgClient,​HTTPOauth2FileAuthorizationMechanismCfg>
    An interface for querying the HTTP Oauth2 File Authorization Mechanism managed object definition meta information.

    The HTTP Oauth2 File Authorization Mechanism is used to define OAuth2 authorization through a file based access-token resolution. For test purpose only, this mechanism is looking up for JSON access-token files under the specified path.

    • Method Detail

      • getInstance

        public static HTTPOauth2FileAuthorizationMechanismCfgDefn getInstance()
        Get the HTTP Oauth2 File Authorization Mechanism configuration definition singleton.
        Returns:
        Returns the HTTP Oauth2 File Authorization Mechanism configuration definition singleton.
      • getAccessTokenCacheEnabledPropertyDefinition

        public BooleanPropertyDefinition getAccessTokenCacheEnabledPropertyDefinition()
        Get the "access-token-cache-enabled" property definition.

        Indicates whether the HTTP Oauth2 File Authorization Mechanism is enabled for use.

        Returns:
        Returns the "access-token-cache-enabled" property definition.
      • getAccessTokenCacheExpirationPropertyDefinition

        public DurationPropertyDefinition getAccessTokenCacheExpirationPropertyDefinition()
        Get the "access-token-cache-expiration" property definition.

        Token cache expiration

        Returns:
        Returns the "access-token-cache-expiration" property definition.
      • getAccessTokenDirectoryPropertyDefinition

        public StringPropertyDefinition getAccessTokenDirectoryPropertyDefinition()
        Get the "access-token-directory" property definition.

        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.

        Returns:
        Returns the "access-token-directory" property definition.
      • getAuthzidJsonPointerPropertyDefinition

        public StringPropertyDefinition getAuthzidJsonPointerPropertyDefinition()
        Get the "authzid-json-pointer" property definition.

        Specifies the JSON pointer to the value to use as Authorization ID. The JSON pointer is applied to the resolved access token JSON document. (example: /uid)

        Returns:
        Returns the "authzid-json-pointer" property definition.
      • getEnabledPropertyDefinition

        public BooleanPropertyDefinition getEnabledPropertyDefinition()
        Get the "enabled" property definition.

        Indicates whether the HTTP Oauth2 File Authorization Mechanism is enabled.

        Returns:
        Returns the "enabled" property definition.
      • getIdentityMapperPropertyDefinition

        public AggregationPropertyDefinition<IdentityMapperCfgClient,​IdentityMapperCfg> getIdentityMapperPropertyDefinition()
        Get the "identity-mapper" property definition.

        > Specifies the name of the identity mapper to use in conjunction with the authzid-json-pointer to get the user corresponding to the acccess-token.

        Returns:
        Returns the "identity-mapper" property definition.
      • getJavaClassPropertyDefinition

        public ClassPropertyDefinition getJavaClassPropertyDefinition()
        Get the "java-class" property definition.

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

        Returns:
        Returns the "java-class" property definition.
      • getRequiredScopePropertyDefinition

        public StringPropertyDefinition getRequiredScopePropertyDefinition()
        Get the "required-scope" property definition.

        Scopes required to grant access to the service.

        Returns:
        Returns the "required-scope" property definition.