public interface HttpOauth2FileAuthorizationMechanismCfg extends HttpOauth2AuthorizationMechanismCfg
The HTTP OAuth2 File Based 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 Based Authorization Mechanism is changed.
|
Class<? extends HttpOauth2FileAuthorizationMechanismCfg> |
configurationClass()
Gets the configuration class associated with this HTTP OAuth2 File Based 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 Based Authorization Mechanism configuration change listener.
|
addHttpOauth2AuthorizationMechanismChangeListener, getAccessTokenCacheExpiration, getAuthzidJsonPointer, getIdentityMapper, getIdentityMapperDn, getRequiredScope, isAccessTokenCacheEnabled, removeHttpOauth2AuthorizationMechanismChangeListener
addChangeListener, isEnabled, removeChangeListener
dn, name
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 Based Authorization Mechanism configuration change listener.void removeHttpOauth2FileAuthorizationMechanismChangeListener(ConfigurationChangeListener<HttpOauth2FileAuthorizationMechanismCfg> listener)
listener
- The HTTP OAuth2 File Based 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 Based Authorization Mechanism implementation.
getJavaClass
in interface HttpAuthorizationMechanismCfg
Copyright 2010-2018 ForgeRock AS.