public interface HTTPOauth2FileAuthorizationMechanismCfg extends HTTPOauth2AuthorizationMechanismCfg
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.
Modifier and Type | Method and Description |
---|---|
void |
addHTTPOauth2FileAuthorizationMechanismChangeListener(ConfigurationChangeListener<HTTPOauth2FileAuthorizationMechanismCfg> listener)
Register to be notified when this HTTP Oauth2 File Authorization Mechanism is changed.
|
Class<? extends HTTPOauth2FileAuthorizationMechanismCfg> |
configurationClass()
Gets the configuration class associated with this HTTP Oauth2 File Authorization Mechanism.
|
String |
getAccessTokenDirectory()
Gets the "access-token-directory" property.
|
String |
getJavaClass()
Gets the "java-class" property.
|
void |
removeHTTPOauth2FileAuthorizationMechanismChangeListener(ConfigurationChangeListener<HTTPOauth2FileAuthorizationMechanismCfg> listener)
Deregister an existing HTTP Oauth2 File Authorization Mechanism configuration change listener.
|
addHTTPOauth2AuthorizationMechanismChangeListener, getAccessTokenCacheExpiration, getAuthzidJsonPointer, getIdentityMapper, getIdentityMapperDN, getRequiredScope, isAccessTokenCacheEnabled, removeHTTPOauth2AuthorizationMechanismChangeListener
addChangeListener, isEnabled, removeChangeListener
dn
Class<? extends HTTPOauth2FileAuthorizationMechanismCfg> configurationClass()
configurationClass
in interface Configuration
configurationClass
in interface HTTPAuthorizationMechanismCfg
configurationClass
in interface HTTPOauth2AuthorizationMechanismCfg
void addHTTPOauth2FileAuthorizationMechanismChangeListener(ConfigurationChangeListener<HTTPOauth2FileAuthorizationMechanismCfg> listener)
listener
- The HTTP Oauth2 File Authorization Mechanism configuration change listener.void removeHTTPOauth2FileAuthorizationMechanismChangeListener(ConfigurationChangeListener<HTTPOauth2FileAuthorizationMechanismCfg> listener)
listener
- The HTTP Oauth2 File Authorization Mechanism configuration change listener.String getAccessTokenDirectory()
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.
String getJavaClass()
Specifies the fully-qualified name of the Java class that provides the HTTP Oauth2 File Authorization Mechanism implementation.
getJavaClass
in interface HTTPAuthorizationMechanismCfg
Copyright 2010-2017 ForgeRock AS.