public interface HttpOauth2FileAuthorizationMechanismCfgClient extends HttpOauth2AuthorizationMechanismCfgClient
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 |
---|---|
ManagedObjectDefinition<? extends HttpOauth2FileAuthorizationMechanismCfgClient,? extends HttpOauth2FileAuthorizationMechanismCfg> |
definition()
Get the configuration definition associated with this HTTP OAuth2 File Based Authorization Mechanism.
|
ValueOrExpression<String> |
getAccessTokenDirectory()
Gets the "access-token-directory" property.
|
ValueOrExpression<String> |
getJavaClass()
Gets the "java-class" property.
|
void |
setAccessTokenDirectory(ValueOrExpression<String> value)
Sets the "access-token-directory" property.
|
void |
setJavaClass(ValueOrExpression<String> value)
Sets the "java-class" property.
|
getAccessTokenCacheExpiration, getAuthzidJsonPointer, getIdentityMapper, getRequiredScope, isAccessTokenCacheEnabled, setAccessTokenCacheEnabled, setAccessTokenCacheExpiration, setAuthzidJsonPointer, setIdentityMapper, setRequiredScope
isEnabled, setEnabled
commit, properties
ManagedObjectDefinition<? extends HttpOauth2FileAuthorizationMechanismCfgClient,? extends HttpOauth2FileAuthorizationMechanismCfg> definition()
definition
in interface ConfigurationClient
definition
in interface HttpAuthorizationMechanismCfgClient
definition
in interface HttpOauth2AuthorizationMechanismCfgClient
ValueOrExpression<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.
void setAccessTokenDirectory(ValueOrExpression<String> value) throws PropertyException
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.
value
- The value of the "access-token-directory" property.PropertyException
- If the new value is invalid.ValueOrExpression<String> getJavaClass()
Specifies the fully-qualified name of the Java class that provides the HTTP OAuth2 File Based Authorization Mechanism implementation.
getJavaClass
in interface HttpAuthorizationMechanismCfgClient
void setJavaClass(ValueOrExpression<String> value) throws PropertyException
Specifies the fully-qualified name of the Java class that provides the HTTP OAuth2 File Based Authorization Mechanism implementation.
setJavaClass
in interface HttpAuthorizationMechanismCfgClient
value
- The value of the "java-class" property.PropertyException
- If the new value is invalid.Copyright 2010-2018 ForgeRock AS.