Class PrivilegeValidator


  • public class PrivilegeValidator
    extends Object
    Validator for privileges intended for use with XACML based operations.
    Since:
    12.0.0
    • 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 a ReferralPrivilege. 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.