Class DefaultPolicyOperationCombinationValidator
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.policy.operations.DefaultPolicyOperationCombinationValidator
-
- All Implemented Interfaces:
PolicyOperationCombinationValidator
public class DefaultPolicyOperationCombinationValidator extends Object implements PolicyOperationCombinationValidator
Validates the permitted combinations of known policy operations for a given metadata parameter.Supports all standard OpenID Connect federation policy operations:
Override the
validate(List)
method to support additional custom policies.Related specifications:
- OpenID Connect Federation 1.0, section 4.2.
-
-
Constructor Summary
Constructors Constructor Description DefaultPolicyOperationCombinationValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PolicyOperation>
validate(List<PolicyOperation> policyOperations)
Validates the specified combination of policy operations.
-
-
-
Constructor Detail
-
DefaultPolicyOperationCombinationValidator
public DefaultPolicyOperationCombinationValidator()
-
-
Method Detail
-
validate
public List<PolicyOperation> validate(List<PolicyOperation> policyOperations) throws PolicyViolationException
Description copied from interface:PolicyOperationCombinationValidator
Validates the specified combination of policy operations.- Specified by:
validate
in interfacePolicyOperationCombinationValidator
- Parameters:
policyOperations
- The policy operations, empty list if none.- Returns:
- The validated and optionally optimised policy operations.
- Throws:
PolicyViolationException
- On a illegal policy combination.
-
-