public class OpenSSOPolicyDataStore extends PolicyDataStore
POLICIES
Constructor and Description |
---|
OpenSSOPolicyDataStore() |
Modifier and Type | Method and Description |
---|---|
void |
addPolicy(Subject subject,
String realm,
Privilege privilege)
Adds policy.
|
void |
addReferral(Subject subject,
String realm,
ReferralPrivilege referral)
Adds a referral privilege.
|
Object |
getPolicy(Subject adminSubject,
String realm,
String name)
Returns policy object.
|
ReferralPrivilege |
getReferral(Subject adminSubject,
String realm,
String name)
Returns referral privilege object.
|
void |
removePrivilege(Subject subject,
String realm,
Privilege privilege)
Removes policy.
|
void |
removeReferral(Subject subject,
String realm,
ReferralPrivilege referral) |
getInstance
public void addPolicy(Subject subject, String realm, Privilege privilege) throws EntitlementException
PolicyDataStore
addPolicy
in class PolicyDataStore
subject
- who is performing the operation.realm
- Realm name.privilege
- privilege object.EntitlementException
public Object getPolicy(Subject adminSubject, String realm, String name) throws EntitlementException
PolicyDataStore
getPolicy
in class PolicyDataStore
adminSubject
- Administrator subject that has the credential to
addReferral the policy.realm
- Realm name.name
- Policy name.EntitlementException
public ReferralPrivilege getReferral(Subject adminSubject, String realm, String name) throws EntitlementException
PolicyDataStore
getReferral
in class PolicyDataStore
adminSubject
- Administrator subject that has the credential to
addReferral the policy.realm
- Realm name.name
- Policy name.EntitlementException
public void removePrivilege(Subject subject, String realm, Privilege privilege) throws EntitlementException
PolicyDataStore
removePrivilege
in class PolicyDataStore
subject
- Administrator subject that has the credential to
remove privilege.realm
- Realm name.privilege
- Privilege to be deletedEntitlementException
public void addReferral(Subject subject, String realm, ReferralPrivilege referral) throws EntitlementException
PolicyDataStore
addReferral
in class PolicyDataStore
subject
- who is performing the operation.realm
- Realm name.referral
- Referral PrivilegeEntitlementException
- if referral privilege cannot be addedpublic void removeReferral(Subject subject, String realm, ReferralPrivilege referral) throws EntitlementException
removeReferral
in class PolicyDataStore
EntitlementException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.