Class PrivilegeValidator
- java.lang.Object
-
- com.sun.identity.entitlement.xacml3.validation.PrivilegeValidator
-
public class PrivilegeValidator extends Object
Validator for privileges intended for use with XACML based operations.- Since:
- 12.0.0
-
-
Constructor Summary
Constructors Constructor Description PrivilegeValidator(RealmValidator realmValidator)Create instance of this validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidatePrivilege(Privilege privilege)Apply validation logic to a Privilege.voidvalidateReferralPrivilege(ReferralPrivilege referralPrivilege)Apply validation logic to aReferralPrivilege.
-
-
-
Constructor Detail
-
PrivilegeValidator
@Inject public PrivilegeValidator(RealmValidator realmValidator)
Create instance of this validator.- Parameters:
realmValidator- Non null.
-
-
Method Detail
-
validatePrivilege
public void validatePrivilege(Privilege privilege) throws EntitlementException
Apply validation logic to a Privilege. Note: No validation logic is performed at the moment.- Parameters:
privilege- The Privilege.- Throws:
EntitlementException- Not thrown.
-
validateReferralPrivilege
public void validateReferralPrivilege(ReferralPrivilege referralPrivilege) throws EntitlementException
Apply validation logic to aReferralPrivilege. Ensure that the ReferralPrivilege points to an existing Realm.- Parameters:
referralPrivilege- Non null ReferralPrivilege to validate.- Throws:
EntitlementException- If the ReferralPrivilege points to one or more non-existent realms, or this method is unable to verify that such named realms exist.
-
-