Class SupersetOfOperation
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.policy.operations.SupersetOfOperation
-
- All Implemented Interfaces:
PolicyConfiguration
,PolicyOperation
,StringListConfiguration
,StringListOperation
public class SupersetOfOperation extends Object implements PolicyOperation, StringListConfiguration, StringListOperation
Superset-of (superset_of) operation.Example policy:
"request_object_signing_alg_values_supported" : { "superset_of ": [ "ES256", "RS256" ] }
Input:
"request_object_signing_alg_values_supported" : [ "ES256", "ES384", "RS256", "RS512" ]
Result:
"request_object_signing_alg_values_supported" : [ "ES256", "ES384", "RS256", "RS512" ]
Related specifications:
- OpenID Connect Federation 1.0, section 4.1.3.
-
-
Field Summary
Fields Modifier and Type Field Description static OperationName
NAME
protected Set<String>
setConfig
The set configuration.
-
Constructor Summary
Constructors Constructor Description SupersetOfOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
apply(List<String> stringList)
Applies a string list operation.void
configure(List<String> parameter)
Configures.OperationName
getOperationName()
Returns the name identifying the policy operation.List<String>
getStringListConfiguration()
Gets the string list configuration.PolicyOperation
merge(PolicyOperation other)
Merges a policy operation.void
parseConfiguration(Object jsonEntity)
Parses a federation policy operation configuration from the specified JSON entity.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.nimbusds.openid.connect.sdk.federation.policy.language.PolicyOperation
parseConfiguration
-
Methods inherited from interface com.nimbusds.openid.connect.sdk.federation.policy.language.StringListConfiguration
configure, getStringListConfiguration
-
-
-
-
Field Detail
-
NAME
public static final OperationName NAME
-
-
Constructor Detail
-
SupersetOfOperation
public SupersetOfOperation()
-
-
Method Detail
-
getOperationName
public OperationName getOperationName()
Description copied from interface:PolicyOperation
Returns the name identifying the policy operation.- Specified by:
getOperationName
in interfacePolicyOperation
- Returns:
- The operation name.
-
merge
public PolicyOperation merge(PolicyOperation other) throws PolicyViolationException
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
public List<String> apply(List<String> stringList) throws PolicyViolationException
Description copied from interface:StringListOperation
Applies a string list operation.- Specified by:
apply
in interfaceStringListOperation
- Parameters:
stringList
- The string list,null
if not specified.- Returns:
- The resulting string list (unmodifiable).
- Throws:
PolicyViolationException
- On a policy violation.
-
configure
public void configure(List<String> parameter)
Description copied from interface:StringListConfiguration
Configures.- Specified by:
configure
in interfaceStringListConfiguration
- Parameters:
parameter
- The string list configuration parameter. Must not benull
.
-
parseConfiguration
public void parseConfiguration(Object jsonEntity) throws ParseException
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.
-
getStringListConfiguration
public List<String> getStringListConfiguration()
Description copied from interface:StringListConfiguration
Gets the string list configuration.- Specified by:
getStringListConfiguration
in interfaceStringListConfiguration
- Returns:
- The string list configuration parameter.
-
-