Interface HttpOauth2TokenIntrospectionAuthorizationMechanismCfgClient
-
- All Superinterfaces:
ConfigurationClient
,HttpAuthorizationMechanismCfgClient
,HttpOauth2AuthorizationMechanismCfgClient
public interface HttpOauth2TokenIntrospectionAuthorizationMechanismCfgClient extends HttpOauth2AuthorizationMechanismCfgClient
A client-side interface for reading and modifying HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism settings.The HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism is used to define OAuth2 authorization using an introspection (RFC7662) compliant authorization server.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends HttpOauth2TokenIntrospectionAuthorizationMechanismCfgClient,? extends HttpOauth2TokenIntrospectionAuthorizationMechanismCfg>
definition()
Get the configuration definition associated with this HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism.ValueOrExpression<String>
getClientId()
Gets the "client-id" property.ValueOrExpression<String>
getClientSecret()
Gets the "client-secret" property.ValueOrExpression<String>
getJavaClass()
Gets the "java-class" property.ValueOrExpression<String>
getKeyManagerProvider()
Gets the "key-manager-provider" property.SortedSet<ValueOrExpression<String>>
getSslCertNickname()
Gets the "ssl-cert-nickname" property.SortedSet<ValueOrExpression<String>>
getSslCipherSuite()
Gets the "ssl-cipher-suite" property.SortedSet<ValueOrExpression<String>>
getSslProtocol()
Gets the "ssl-protocol" property.ValueOrExpression<String>
getTokenIntrospectionUrl()
Gets the "token-introspection-url" property.ValueOrExpression<String>
getTrustManagerProvider()
Gets the "trust-manager-provider" property.void
setClientId(ValueOrExpression<String> value)
Sets the "client-id" property.void
setClientSecret(ValueOrExpression<String> value)
Sets the "client-secret" property.void
setJavaClass(ValueOrExpression<String> value)
Sets the "java-class" property.void
setKeyManagerProvider(ValueOrExpression<String> value)
Sets the "key-manager-provider" property.void
setSslCertNickname(Collection<ValueOrExpression<String>> values)
Sets the "ssl-cert-nickname" property.void
setSslCipherSuite(Collection<ValueOrExpression<String>> values)
Sets the "ssl-cipher-suite" property.void
setSslProtocol(Collection<ValueOrExpression<String>> values)
Sets the "ssl-protocol" property.void
setTokenIntrospectionUrl(ValueOrExpression<String> value)
Sets the "token-introspection-url" property.void
setTrustManagerProvider(ValueOrExpression<String> value)
Sets the "trust-manager-provider" 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 HttpOauth2TokenIntrospectionAuthorizationMechanismCfgClient,? extends HttpOauth2TokenIntrospectionAuthorizationMechanismCfg> definition()
Get the configuration definition associated with this HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfaceHttpAuthorizationMechanismCfgClient
- Specified by:
definition
in interfaceHttpOauth2AuthorizationMechanismCfgClient
- Returns:
- Returns the configuration definition associated with this HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism.
-
getClientId
@MandatoryProperty ValueOrExpression<String> getClientId()
Gets the "client-id" property.Client's ID to use during the HTTP basic authentication against the authorization server.
- Returns:
- Returns the value of the "client-id" property.
-
setClientId
@MandatoryProperty void setClientId(ValueOrExpression<String> value) throws PropertyException
Sets the "client-id" property.Client's ID to use during the HTTP basic authentication against the authorization server.
- Parameters:
value
- The value of the "client-id" property.- Throws:
PropertyException
- If the new value is invalid.
-
getClientSecret
@MandatoryProperty ValueOrExpression<String> getClientSecret()
Gets the "client-secret" property.Client's secret to use during the HTTP basic authentication against the authorization server.
- Returns:
- Returns the value of the "client-secret" property.
-
setClientSecret
@MandatoryProperty void setClientSecret(ValueOrExpression<String> value) throws PropertyException
Sets the "client-secret" property.Client's secret to use during the HTTP basic authentication against the authorization server.
- Parameters:
value
- The value of the "client-secret" property.- Throws:
PropertyException
- If the new value is invalid.
-
getJavaClass
@MandatoryProperty ValueOrExpression<String> getJavaClass()
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism implementation.
Default value:
org.opends.server.protocols.http.authz.HttpOAuth2TokenIntrospectionAuthorizationMechanism
- Specified by:
getJavaClass
in interfaceHttpAuthorizationMechanismCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
@MandatoryProperty void setJavaClass(ValueOrExpression<String> value) throws PropertyException
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism implementation.
- Specified by:
setJavaClass
in interfaceHttpAuthorizationMechanismCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
getKeyManagerProvider
ValueOrExpression<String> getKeyManagerProvider()
Gets the "key-manager-provider" property.Specifies the name of the key manager that should be used with this HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism .
Default value is undefined
- Returns:
- Returns the value of the "key-manager-provider" property.
-
setKeyManagerProvider
void setKeyManagerProvider(ValueOrExpression<String> value) throws PropertyException
Sets the "key-manager-provider" property.Specifies the name of the key manager that should be used with this HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism .
- Parameters:
value
- The value of the "key-manager-provider" property.- Throws:
PropertyException
- If the new value is invalid.
-
getSslCertNickname
SortedSet<ValueOrExpression<String>> getSslCertNickname()
Gets the "ssl-cert-nickname" property.Specifies the nicknames (also called the aliases) of the keys or key pairs that the HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism should use when performing SSL communication.
The property can be used multiple times (referencing different nicknames) when server certificates with different public key algorithms are used in parallel (for example, RSA, DSA, and ECC-based algorithms). When a nickname refers to an asymmetric (public/private) key pair, the nickname for the public key certificate and associated private key entry must match exactly. A single nickname is used to retrieve both the public key and the private key. This is only applicable when the HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism is configured to use SSL.
- Returns:
- Returns the values of the "ssl-cert-nickname" property.
-
setSslCertNickname
void setSslCertNickname(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "ssl-cert-nickname" property.Specifies the nicknames (also called the aliases) of the keys or key pairs that the HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism should use when performing SSL communication.
The property can be used multiple times (referencing different nicknames) when server certificates with different public key algorithms are used in parallel (for example, RSA, DSA, and ECC-based algorithms). When a nickname refers to an asymmetric (public/private) key pair, the nickname for the public key certificate and associated private key entry must match exactly. A single nickname is used to retrieve both the public key and the private key. This is only applicable when the HTTP OAuth2 Token Introspection (RFC 7662) Authorization Mechanism is configured to use SSL.
- Parameters:
values
- The values of the "ssl-cert-nickname" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getSslCipherSuite
SortedSet<ValueOrExpression<String>> getSslCipherSuite()
Gets the "ssl-cipher-suite" property.Specifies the names of the SSL cipher suites that are allowed for use in SSL or TLS communication.
- Returns:
- Returns the values of the "ssl-cipher-suite" property.
-
setSslCipherSuite
void setSslCipherSuite(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "ssl-cipher-suite" property.Specifies the names of the SSL cipher suites that are allowed for use in SSL or TLS communication.
- Parameters:
values
- The values of the "ssl-cipher-suite" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getSslProtocol
SortedSet<ValueOrExpression<String>> getSslProtocol()
Gets the "ssl-protocol" property.Specifies the names of the SSL protocols that are allowed for use in SSL or TLS communication.
- Returns:
- Returns the values of the "ssl-protocol" property.
-
setSslProtocol
void setSslProtocol(Collection<ValueOrExpression<String>> values) throws PropertyException
Sets the "ssl-protocol" property.Specifies the names of the SSL protocols that are allowed for use in SSL or TLS communication.
- Parameters:
values
- The values of the "ssl-protocol" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getTokenIntrospectionUrl
@MandatoryProperty ValueOrExpression<String> getTokenIntrospectionUrl()
Gets the "token-introspection-url" property.Defines the token introspection endpoint URL where the access-token resolution request should be sent. (example: http://example.com/introspect)
- Returns:
- Returns the value of the "token-introspection-url" property.
-
setTokenIntrospectionUrl
@MandatoryProperty void setTokenIntrospectionUrl(ValueOrExpression<String> value) throws PropertyException
Sets the "token-introspection-url" property.Defines the token introspection endpoint URL where the access-token resolution request should be sent. (example: http://example.com/introspect)
- Parameters:
value
- The value of the "token-introspection-url" property.- Throws:
PropertyException
- If the new value is invalid.
-
getTrustManagerProvider
ValueOrExpression<String> getTrustManagerProvider()
Gets the "trust-manager-provider" property.Specifies the name of the trust manager that should be used when negotiating SSL connections with the remote authorization server.
- Returns:
- Returns the value of the "trust-manager-provider" property.
-
setTrustManagerProvider
void setTrustManagerProvider(ValueOrExpression<String> value) throws PropertyException
Sets the "trust-manager-provider" property.Specifies the name of the trust manager that should be used when negotiating SSL connections with the remote authorization server.
- Parameters:
value
- The value of the "trust-manager-provider" property.- Throws:
PropertyException
- If the new value is invalid.
-
-