public class SubjectAttributesManager extends Object
Modifier and Type | Method and Description |
---|---|
Set<String> |
getApplicationAttributeNames(String realm,
String applicationName)
Returns application attribute names.
|
Map<String,Set<String>> |
getAttributes(Subject subject,
Set<String> attrNames)
Returns the attribute values of the given user represented by
|
Set<String> |
getAvailableSubjectAttributeNames()
Returns available subject attribute names.
|
static SubjectAttributesManager |
getInstance(Subject adminSubject)
Returns an instance of
SubjectAttributesManager . |
static SubjectAttributesManager |
getInstance(Subject adminSubject,
String realmName)
Returns the
SubjectAttributesManager of a given realm. |
static SubjectAttributesManager |
getInstance(Subject adminSubject,
Subject subject)
Returns the
SubjectAttributesManager of a given subject. |
static Set<String> |
getRequiredAttributeNames(Privilege privilege)
Returns the required attribute name for a given privilege.
|
Set<String> |
getSubjectSearchFilter(Subject subject,
String applicationName)
Returns the subject search filter for a given subject.
|
static Set<String> |
getSubjectSearchIndexes(Privilege privilege)
Returns the subject search indexes for a given privilege.
|
Map<String,Set<String>> |
getUserAttributes(Subject subject,
Set<String> attrNames)
Returns the attribute values of the given user represented by
|
boolean |
isGroupMembershipSearchIndexEnabled()
Returns true if group membership search index is enabled or false
otherwise.
|
public static SubjectAttributesManager getInstance(Subject adminSubject)
SubjectAttributesManager
.adminSubject
- subject who has rights to access PIP.SubjectAttributesManager
.public static SubjectAttributesManager getInstance(Subject adminSubject, Subject subject)
SubjectAttributesManager
of a given subject.adminSubject
- subject who has rights to access PIP.subject
- SubjectSubjectAttributesManager
of a given subject.public static SubjectAttributesManager getInstance(Subject adminSubject, String realmName)
SubjectAttributesManager
of a given realm.adminSubject
- subject who has rights to access PIP.realmName
- Name of realm.SubjectAttributesManager
of a given realm.public static Set<String> getSubjectSearchIndexes(Privilege privilege) throws EntitlementException
privilege
- Privilege object.EntitlementException
- if indexes
cannot be obtained.public static Set<String> getRequiredAttributeNames(Privilege privilege)
privilege
- Privilege object.public Set<String> getSubjectSearchFilter(Subject subject, String applicationName) throws EntitlementException
subject
- Subject object.applicationName
- Name of application.EntitlementException
- if search
filter cannot be obtained.public Map<String,Set<String>> getAttributes(Subject subject, Set<String> attrNames) throws EntitlementException
subject
- identity of the user.attrNames
- requested attribute names.EntitlementException
- if attribute
values cannot be obtained.public Set<String> getApplicationAttributeNames(String realm, String applicationName) throws EntitlementException
realm
- Realm nameapplicationName
- Application name.EntitlementException
- if application attributes cannot be
returned.public Set<String> getAvailableSubjectAttributeNames() throws EntitlementException
EntitlementException
- if available subject attribute names cannot be returned.public boolean isGroupMembershipSearchIndexEnabled()
public Map<String,Set<String>> getUserAttributes(Subject subject, Set<String> attrNames) throws EntitlementException
subject
- identity of the user.attrNames
- requested attribute names.EntitlementException
- if attribute
values cannot be obtained.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.