Class EssentialOperation
java.lang.Object
com.nimbusds.openid.connect.sdk.federation.policy.operations.EssentialOperation
- All Implemented Interfaces:
BooleanConfiguration
,PolicyConfiguration
,PolicyOperation
,UntypedOperation
public class EssentialOperation
extends Object
implements PolicyOperation, BooleanConfiguration, UntypedOperation
Default (default) value operation.
Example policy:
"tos_uri" : { "essential" : true }
Related specifications:
- OpenID Connect Federation 1.0, section 5.1.2.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies an untyped operation.void
configure
(boolean enable) Configures.boolean
Gets the boolean configuration.Returns the name identifying the policy operation.merge
(PolicyOperation other) Merges a policy operation.void
parseConfiguration
(Object jsonEntity) Parses a federation policy operation configuration from the specified JSON entity.Returns a JSON object entry representation of the policy operation.
-
Field Details
-
NAME
-
-
Constructor Details
-
EssentialOperation
public EssentialOperation()
-
-
Method Details
-
getOperationName
Description copied from interface:PolicyOperation
Returns the name identifying the policy operation.- Specified by:
getOperationName
in interfacePolicyOperation
- Returns:
- The operation name.
-
configure
Description copied from interface:BooleanConfiguration
Configures.- Specified by:
configure
in interfaceBooleanConfiguration
- Parameters:
enable
- The parameter.
-
parseConfiguration
Description copied from interface:PolicyOperation
Parses a federation policy operation configuration from the specified JSON entity.- Specified by:
parseConfiguration
in interfacePolicyOperation
- Parameters:
jsonEntity
- The JSON entity, must represent a boolean, number, string, array or object.null
if not specified.- Throws:
ParseException
- On a parse exception.
-
toJSONObjectEntry
Description copied from interface:PolicyOperation
Returns a JSON object entry representation of the policy operation.- Specified by:
toJSONObjectEntry
in interfacePolicyOperation
- Returns:
- The JSON object entry, with a boolean, number, string, array or object value.
-
getBooleanConfiguration
Description copied from interface:BooleanConfiguration
Gets the boolean configuration.- Specified by:
getBooleanConfiguration
in interfaceBooleanConfiguration
- Returns:
- The boolean configuration parameter.
-
merge
Description copied from interface:PolicyOperation
Merges a policy operation.- Specified by:
merge
in interfacePolicyOperation
- Parameters:
other
- The policy to merge. Must be of the same type and notnull
.- Returns:
- The resulting new policy operation.
- Throws:
PolicyViolationException
- On a merge exception.
-
apply
Description copied from interface:UntypedOperation
Applies an untyped operation.- Specified by:
apply
in interfaceUntypedOperation
- Parameters:
value
- The value,null
if not specified.- Returns:
- The resulting value, must represent a valid JSON entity such as boolean, number, string, array or object.
- Throws:
PolicyViolationException
- On a policy violation.
-