Interface HTTPOauth2FileAuthorizationMechanismCfgClient
-
- All Superinterfaces:
ConfigurationClient,HTTPAuthorizationMechanismCfgClient,HTTPOauth2AuthorizationMechanismCfgClient
public interface HTTPOauth2FileAuthorizationMechanismCfgClient extends HTTPOauth2AuthorizationMechanismCfgClient
A client-side interface for reading and modifying HTTP Oauth2 File Authorization Mechanism settings.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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends HTTPOauth2FileAuthorizationMechanismCfgClient,? extends HTTPOauth2FileAuthorizationMechanismCfg>definition()Get the configuration definition associated with this HTTP Oauth2 File Authorization Mechanism.StringgetAccessTokenDirectory()Gets the "access-token-directory" property.StringgetJavaClass()Gets the "java-class" property.voidsetAccessTokenDirectory(String value)Sets the "access-token-directory" property.voidsetJavaClass(String value)Sets the "java-class" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
Methods inherited from interface org.forgerock.opendj.server.config.client.HTTPAuthorizationMechanismCfgClient
isEnabled, setEnabled
-
Methods inherited from interface org.forgerock.opendj.server.config.client.HTTPOauth2AuthorizationMechanismCfgClient
getAccessTokenCacheExpiration, getAuthzidJsonPointer, getIdentityMapper, getRequiredScope, isAccessTokenCacheEnabled, setAccessTokenCacheEnabled, setAccessTokenCacheExpiration, setAuthzidJsonPointer, setIdentityMapper, setRequiredScope
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends HTTPOauth2FileAuthorizationMechanismCfgClient,? extends HTTPOauth2FileAuthorizationMechanismCfg> definition()
Get the configuration definition associated with this HTTP Oauth2 File Authorization Mechanism.- Specified by:
definitionin interfaceConfigurationClient- Specified by:
definitionin interfaceHTTPAuthorizationMechanismCfgClient- Specified by:
definitionin interfaceHTTPOauth2AuthorizationMechanismCfgClient- Returns:
- Returns the configuration definition associated with this HTTP Oauth2 File Authorization Mechanism.
-
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.
- Returns:
- Returns the value of the "access-token-directory" property.
-
setAccessTokenDirectory
void setAccessTokenDirectory(String value) throws PropertyException
Sets 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.
- Parameters:
value- The value of the "access-token-directory" property.- Throws:
PropertyException- If the new value is invalid.
-
getJavaClass
String getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the HTTP Oauth2 File Authorization Mechanism implementation.
- Specified by:
getJavaClassin interfaceHTTPAuthorizationMechanismCfgClient- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
void setJavaClass(String value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the HTTP Oauth2 File Authorization Mechanism implementation.
- Specified by:
setJavaClassin interfaceHTTPAuthorizationMechanismCfgClient- Parameters:
value- The value of the "java-class" property.- Throws:
PropertyException- If the new value is invalid.
-
-