public class PrivilegeValidator extends Object
Constructor and Description |
---|
PrivilegeValidator(RealmValidator realmValidator)
Create instance of this validator.
|
Modifier and Type | Method and Description |
---|---|
void |
validatePrivilege(Privilege privilege)
Apply validation logic to a Privilege.
|
void |
validateReferralPrivilege(ReferralPrivilege referralPrivilege)
Apply validation logic to a
ReferralPrivilege . |
@Inject public PrivilegeValidator(RealmValidator realmValidator)
realmValidator
- Non null.public void validatePrivilege(Privilege privilege) throws EntitlementException
privilege
- The Privilege.EntitlementException
- Not thrown.public void validateReferralPrivilege(ReferralPrivilege referralPrivilege) throws EntitlementException
ReferralPrivilege
.
Ensure that the ReferralPrivilege points to an existing Realm.referralPrivilege
- Non null ReferralPrivilege to validate.EntitlementException
- If the ReferralPrivilege points to one or more
non-existent realms, or this method is unable to verify that such named realms exist.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.