Class SubsetOfOperation
java.lang.Object
com.nimbusds.openid.connect.sdk.federation.policy.operations.SubsetOfOperation
- All Implemented Interfaces:
PolicyConfiguration,PolicyOperation,StringListConfiguration,StringListOperation
Subset-of (subset_of) operation.
Example policy:
"response_types" : { "subset_of" : [ "code", "code token", "code id_token" ] }
Input:
"response_types" : [ "code", "code id_token token", "code id_token" ]
Result:
"response_types" : ["code", "code id_token"]
Related specifications:
- OpenID Connect Federation 1.0, section 5.1.2.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.nimbusds.openid.connect.sdk.federation.policy.operations.ConfigurationTypeThe configuration type.static final OperationNameThe set configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies a string list operation.voidConfigures.Returns the name identifying the policy operation.Gets the string list configuration.merge(PolicyOperation other) Merges a policy operation.voidparseConfiguration(Object jsonEntity) Parses a federation policy operation configuration from the specified JSON entity.Returns a JSON object entry representation of the policy operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.nimbusds.openid.connect.sdk.federation.policy.language.PolicyOperation
parseConfiguration
-
Field Details
-
NAME
-
setConfig
The set configuration. -
configType
protected com.nimbusds.openid.connect.sdk.federation.policy.operations.ConfigurationType configTypeThe configuration type.
-
-
Constructor Details
-
SubsetOfOperation
public SubsetOfOperation()
-
-
Method Details
-
getOperationName
Description copied from interface:PolicyOperationReturns the name identifying the policy operation.- Specified by:
getOperationNamein interfacePolicyOperation- Returns:
- The operation name.
-
toJSONObjectEntry
Description copied from interface:PolicyOperationReturns a JSON object entry representation of the policy operation.- Specified by:
toJSONObjectEntryin interfacePolicyOperation- Returns:
- The JSON object entry, with a boolean, number, string, array or object value.
-
merge
Description copied from interface:PolicyOperationMerges a policy operation.- Specified by:
mergein 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:StringListOperationApplies a string list operation.- Specified by:
applyin interfaceStringListOperation- Parameters:
stringList- The string list,nullif not specified.- Returns:
- The resulting string list (unmodifiable).
-
configure
Description copied from interface:StringListConfigurationConfigures.- Specified by:
configurein interfaceStringListConfiguration- Parameters:
parameter- The string list configuration parameter. Must not benull.
-
parseConfiguration
Description copied from interface:PolicyOperationParses a federation policy operation configuration from the specified JSON entity.- Specified by:
parseConfigurationin interfacePolicyOperation- Parameters:
jsonEntity- The JSON entity, must represent a boolean, number, string, array or object.nullif not specified.- Throws:
ParseException- On a parse exception.
-
getStringListConfiguration
Description copied from interface:StringListConfigurationGets the string list configuration.- Specified by:
getStringListConfigurationin interfaceStringListConfiguration- Returns:
- The string list configuration parameter.
-