Uses of Class
com.sun.identity.idm.IdRepoException
Package
Description
Provides classes for accessing the Identity Repository interfaces.
-
Uses of IdRepoException in com.sun.identity.idm
Modifier and TypeClassDescriptionclass
An exception type thrown when anIdRepo
is asked to create an object with a name that is already used.class
The exception class whose instance is thrown if there is any error during the operation of objects of thecom.sun.identity.sms
package.class
The exception class whose instance is thrown if there is any error during the operation of objects of thecom.sun.identity.sms
package.class
The exception class whose instance is thrown if there is any error related with password issue.Modifier and TypeMethodDescriptionabstract int
IdRepo.addListener
(SSOToken token, IdRepoListener listener) Adds a listener for changes in the repositoryvoid
AMIdentity.addMember
(AMIdentity identity) Adds the passed identity as a member of this identity.void
AMIdentity.addMembers
(Set<AMIdentity> identities) Adds the passed identities as members of this identity.void
AMIdentity.assignService
(String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attributes) Assigns the service and service related attributes to the identity.abstract void
IdRepo.assignService
(SSOToken token, IdType type, String name, String serviceName, SchemaType stype, Map<String, Set<String>> attrMap) This method is used to assign a service to the given identity.boolean
IdRepo.authenticate
(Callback[] credentials) Returnstrue
if the data store successfully authenticates the identity with the provided credentials.void
AMIdentity.changePassword
(String oldPassword, String newPassword) Changes password for the identity.void
IdRepo.changePassword
(SSOToken token, IdType type, String name, String attrName, String oldPassword, String newPassword) Changes password of identity.abstract String
Creates an identity.AMIdentityRepository.createIdentities
(IdType type, Map<String, Map<?, ?>> identityNamesAndAttrs) Create a set ofAMIdentity
s.AMIdentityRepository.createIdentity
(IdType type, String idName, Map attrMap) Create anAMIdentity
object.abstract void
Deletes an identity.void
AMIdentityRepository.deleteIdentities
(IdType type, Set identities) Delete a set of identities byIdType
.void
AMIdentityRepository.deleteIdentities
(Set<AMIdentity> identities) Delete a set ofAMIdentity
s.AMIdentityRepository.getAllowedIdOperations
(IdType type) Get allowed identity operations.AMIdentity.getAssignableServices()
Returns all services which can be assigned to this entity.AMIdentity.getAssignedServices()
Returns the set of services already assigned to this identity.IdRepo.getAssignedServices
(SSOToken token, IdType type, String name, Map<String, Set<String>> mapOfServicesAndOCs) Returns the set of services assigned to this identity.AMIdentity.getAttribute
(String attrName) Returns the values of the requested attribute.AMIdentity.getAttributes()
Returns all attributes and values of this identity.AMIdentity.getAttributes
(Set<String> attrNames) Returns requested attributes and values of this object.IdRepo.getAttributes
(SSOToken token, IdType type, String name) Returns all attributes and values of name objectReturns requested attributes and values of name object.AMIdentity.getBinaryAttributes
(Set attrNames) Returns requested attributes and values of this object.Returns requested binary attributes as an array of bytes.IdRepo.getBinaryServiceAttributes
(SSOToken token, IdType type, String name, String serviceName, Set<String> attrNames) Returns the requested binary attribute values of the service attributes as an array of bytes.IdRepo.getFullyQualifiedName
(SSOToken token, IdType type, String name) Returns the fully qualified name for the identity.static AMIdentity
IdUtils.getIdentity
(SSOToken token) static AMIdentity
IdUtils.getIdentity
(SSOToken token, String univId) AMIdentity.getMembers
(IdType mtype) Return all members of a given identity type of this identity as a Set of AMIdentity objects.IdRepo.getMembers
(SSOToken token, IdType type, String name, IdType membersType) Returns the memberships of an identity.AMIdentity.getMemberships
(IdType mtype) Returns the set of identities that this identity belongs to.IdRepo.getMemberships
(SSOToken token, IdType type, String name, IdType membershipType) Returns the memberships of an identity.IdRepo.getObjectId
(IdType type, String name) Returns an identifier for an identity which can be used as a reference in audit logs.AMIdentityRepository.getRealmIdentity()
Get the realmAMIdentity
object.AMIdentity.getServiceAttributes
(String serviceName) Returns attributes related to a service, if the service is assigned to the identity.IdRepo.getServiceAttributes
(SSOToken token, IdType type, String name, String serviceName, Set<String> attrNames) Returns the attribute values of the service attributes.AMIdentity.getServiceAttributesAscending
(String serviceName) Returns attributes related to a service, if the service is assigned to the identity.AMIdentityRepository.getSupportedIdTypes()
Get supported identity types.void
IdRepo.initialize
(Map<String, Set<String>> configParams) Initialization paramters as configred for a given plugin.boolean
AMIdentity.isActive()
If there is a status attribute configured, then verifies if the identity is active and returns true.boolean
Returns true if thename
object is active.boolean
AMIdentity.isExists()
This method determines if the identity exists and returns true or false.abstract boolean
Returns true if thename
object exists in the data store.boolean
AMIdentity.isMember
(UniversalId universalId) Verifies if this identity is a member of the identity being passed.abstract void
IdRepo.modifyMemberShip
(SSOToken token, IdType type, String name, Set<String> members, IdType membersType, int operation) Modify membership of the identity.void
AMIdentity.modifyService
(String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attrMap) Set attributes related to a specific service.abstract void
IdRepo.modifyService
(SSOToken token, IdType type, String name, String serviceName, SchemaType sType, Map<String, Set<String>> attrMap) Modifies the attribute values of the service attributes.void
AMIdentity.removeAttributes
(Set<String> attrNames) Removes the attributes from the identity entry.abstract void
Removes the attributes from the identity.void
AMIdentity.removeMember
(AMIdentity identity) Removes the passed identity as a member of this identity.void
AMIdentity.removeMembers
(Set<AMIdentity> identities) Removes the passed identities as members of this identity.void
AMIdentity.removeServiceAttributes
(String serviceName, Set<String> attrNames) Removes attributes value related to a specific service by setting it to empty.abstract com.sun.identity.idm.RepoSearchResults
IdRepo.search
(SSOToken token, IdType type, org.forgerock.openam.utils.CrestQuery crestQuery, int maxTime, int maxResults, Set<String> returnAttrs, boolean returnAllAttrs, int filterOp, Map<String, Set<String>> avPairs, boolean recursive) Search for specific type of identities using a CrestQuery object instead of a string.AMIdentityRepository.searchIdentities
(IdType type, String pattern, IdSearchControl ctrl) Search for identities of certain types from each plugin and returns a combined result.void
AMIdentity.setActiveStatus
(boolean active) If there is a status attribute configured, then set its status to true or activated state if the parameter active is true.abstract void
IdRepo.setActiveStatus
(SSOToken token, IdType type, String name, boolean active) Sets the object's status toactive
.void
AMIdentity.setAttributes
(Map attrMap) Sets the values of attributes.abstract void
IdRepo.setAttributes
(SSOToken token, IdType type, String name, Map<String, Set<String>> attributes, boolean isAdd) Set the values of attributes of the identity.void
AMIdentity.setBinaryAttributes
(Map attrMap) Set the values of binary attributes.abstract void
IdRepo.setBinaryAttributes
(SSOToken token, IdType type, String name, Map<String, byte[][]> attributes, boolean isAdd) Set the values of binary attributes the identity.void
IdRepoListener.setServiceAttributes
(String sName, Map attrs) Stores service's dynamic attributes within the IdRepo plugin configuration.void
AMIdentity.store()
Stores the attributes of the object.void
AMIdentity.unassignService
(String serviceName) Removes a service from the identity.abstract void
IdRepo.unassignService
(SSOToken token, IdType type, String name, String serviceName, Map<String, Set<String>> attrMap) If the service is already assigned to the identity then this method unassigns the service and removes the related attributes from the entry.ModifierConstructorDescriptionCreate a password policy exception from an id repo exception.PasswordPolicyException
(IdRepoException e, Object[] args) Create a password policy exception from an id repo exception.ModifierConstructorDescriptionAMIdentity
(SSOToken token) Constructs a newAMIdentity
instance from the passed token.AMIdentity
(SSOToken token, String universalId) Constructs a newAMIdentity
instance from the passed universal ID.AMIdentityRepository
(SSOToken ssoToken, String realmName) Deprecated. -
Uses of IdRepoException in org.forgerock.am.identity.application
Modifier and TypeMethodDescriptionvoid
IdentityService.addMember
(Identity parent, UniversalId universalId) Adds the passed identity as a member of this identity.void
IdentityService.addMembers
(Identity parent, Set<UniversalId> identities) Adds the passed identities as members of this identity.void
LegacyIdentityServiceStore.assignService
(Identity identity, String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attributes) Assigns the service and service related attributes to the identity.void
IdentityService.changePassword
(Identity identity, String oldPassword, String newPassword) Changes password for the identity.LegacyIdentityService.findActiveIdentities
(Realm realm, IdType idType, Map<String, Set<String>> searchAttributes, IdSearchOpModifier searchModifier) Searches for AM identities with the given attributes in the given realm.LegacyIdentityService.findActiveIdentity
(Realm realm, IdType idType, Map<String, Set<String>> searchAttributes) Searches for an AM identity with the given attributes in the given realm.LegacyIdentityService.getAmIdentity
(SSOToken token, String identityName, IdType idType, String realm) Create anAMIdentity
using the specified information.LegacyIdentityServiceStore.getAssignableServices
(Identity identity) Returns all services which can be assigned to this entity.LegacyIdentityServiceStore.getAssignedServices
(Identity identity) Returns the set of services already assigned to this identity.IdentityService.getBinaryAttributes
(Identity identity, Set<String> attrNames) Returns requested attributes and values of this object.LegacyIdentityService.getIdentityUniversalId
(String subject, String realmPath) Convert an identity subject to anAMIdentity
universal id.IdentityService.getMembers
(Identity identity, IdType mtype) Return all members of a given identity type of this identity as a Set of Identity objects.IdentityService.getMemberships
(Identity identity, IdType mtype) Returns the set of identities that this identity belongs to.LegacyIdentityServiceStore.getServiceAttributes
(Identity identity, String serviceName) Returns attributes related to a service, if the service is assigned to the identity.LegacyIdentityServiceStore.getServiceAttributesAscending
(Identity identity, String serviceName) Returns attributes related to a service, if the service is assigned to the identity.Returns anIdType
given a type.LegacyIdentityService.getUniversalId
(String identityName, IdType idType, String realm) Determines the universal ID of the user based on the provided details.static String
UsernameExtractor.getUsername
(String name) Deprecated.Returns the username when given a string which may be a username, universal ID, or special user DN.boolean
If there is a status attribute configured, then verifies if the identity is active and returns true.boolean
IdentityService.isMember
(Identity identity, UniversalId universalId) Verifies if this identity is a member of the identity being passed.void
LegacyIdentityServiceStore.modifyService
(Identity identity, String serviceName, org.forgerock.openam.sm.ConfigurationAttributes attrMap) Set attributes related to a specific service.IdentityService.IdentityAttributeUpdater.removeAttributes
(Set<String> attrNames) Removes the attributes from the identity entry.void
IdentityService.removeMember
(Identity parent, UniversalId universalId) Removes the passed identity as a member of this identity.void
IdentityService.removeMembers
(Identity parent, Set<UniversalId> identities) Removes the passed identities as members of this identity.void
LegacyIdentityServiceStore.removeServiceAttributes
(Identity identity, String serviceName, Set<String> attrNames) Removes attributes value related to a specific service by setting it to empty.void
IdentityService.setActiveStatus
(Identity identity, boolean active) If there is a status attribute configured, then set its status to true or activated state if the parameter active is true.IdentityService.IdentityAttributeUpdater.setAttributes
(Map attrMap) Sets the values of attributes.IdentityService.IdentityAttributeUpdater.setBinaryAttributes
(Map attrMap) Set the values of binary attributes.void
IdentityService.IdentityAttributeUpdater.store()
Stores the attributes of the object.void
LegacyIdentityServiceStore.unassignService
(Identity identity, String serviceName) Removes a service from the identity. -
Uses of IdRepoException in org.forgerock.am.identity.domain
Modifier and TypeMethodDescriptionIdentity.getAttribute
(String attrName) Returns the values of the requested attribute.Identity.getAttributes()
Returns all attributes and values of this identity.Identity.getAttributes
(Set<String> attrNames) Returns requested attributes and values of this object.boolean
Identity.isExists()
This method determines if the identity exists and returns true or false.static boolean
UniversalId.isUniversalIdOrSpecialUserDn
(Dn dn) Check if dn is a universalId or a special user dn.static UniversalId
Creates a newUniversalId
instance based of the passed token.static UniversalId
Creates a newUniversalId
instance based of the passed individual parts that represent a unique identity.static UniversalId
Creates a newUniversalId
instance based of the passed individual parts that represent a unique identity.static UniversalId
Creates a newUniversalId
instance based of the passed universal ID. -
Uses of IdRepoException in org.forgerock.am.identity.persistence
Modifier and TypeMethodDescriptionboolean
IdentityStore.authenticate
(IdType idType, Callback[] credentials) Non-javadoc, non-public methods Returnstrue
if the data store has successfully authenticated the identity with the provided credentials.boolean
IdentityStore.authenticate
(Callback[] credentials) Non-javadoc, non-public methods Returnstrue
if the data store has successfully authenticated the identity with the provided credentials.Create anAMIdentity
object.IdentityStore.createWithoutValidatingAttributes
(SSOToken token, IdType type, String name, Map<String, Set<String>> attrs, String orgName) Create a new identity without validating the given attributes.void
IdentityStore.deleteIdentity
(AMIdentity identity) Delete anAMIdentity
s.IdentityStore.findIdentityByUsername
(String username, IdType type) Searches for the identity using the username.IdentityStore.findUserByUsernameOrAlias
(String username, Set<String> userSearchAttributes) Searches for the user using the username, then uses the search attributes if nothing is found.IdentityStore.getAllowedIdOperations
(IdType type) Get allowed identity operations.IdentityStore.getRealmIdentity()
Get the realmAMIdentity
object.IdentityStore.getSpecialIdentities
(SSOToken token, IdType type, String orgName) Return the special identities for this realm for a given type.IdentityStore.getSupportedIdTypes()
Get supported identity types.IdentityStore.searchIdentities
(IdType type, String pattern, IdSearchControl ctrl) Search for identities of certain types from each plugin and returns a combined result.IdentityStore.searchIdentities
(IdType type, org.forgerock.openam.utils.CrestQuery crestQuery, IdSearchControl ctrl) Searches for identities of certain types from each plugin and returns a combined result Note: The AMIdentity objects representing IdType.REALM can be used for services related operations only.IdentityStore.searchIdentitiesByUsername
(IdType type, String pattern, IdSearchControl ctrl) Search for a single identity based on the identity of certain types from each plugin.
AMIdentityRepository(String, SSOToken)