|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceProvider
Provides the Identity Manager APIs with access to services
such as password and encryption operations.
The ServiceProvider
interface is part of the core Identity Manager
API architecture. The ...Context
object in each
Identity Manager API inherits ServiceProvider
methods.
Method Summary | |
---|---|
boolean |
canUserAdministerGroup(User user,
Group group)
Deprecated. Deprecated in IdentityMinder 6.0 -- use canUserAdministerGroup() . |
void |
convertLogicalToPhysical(java.util.Vector results)
Converts the specified logical attributes to their corresponding physical attributes. |
void |
convertPhysicalToLogical(java.util.Vector results)
Converts the specified physical attributes to their corresponding logical attributes. |
java.lang.String |
decryptString(java.lang.String toDecrypt)
Decrypts a string that was encrypted by the encryptString() method. |
java.lang.String |
decryptString(java.lang.String key,
java.lang.String toDecrypt)
Decrypts a string that was encrypted by the encryptString() method. |
boolean |
doesSupportGroup()
Determines whether the current environment supports groups. |
boolean |
doesSupportOrganization()
Determines whether the current environment supports organizations. |
java.lang.String |
encryptString(java.lang.String toEncrypt)
Encrypts a string using the RSA JSafe encryption libarary. |
java.lang.String |
encryptString(java.lang.String key,
java.lang.String toEncrypt)
Encrypts a string using the RSA JSafe encryption libarary. |
AdminTask |
findAdminTask(java.lang.String taskName)
Deprecated. Deprecated in IdentityMinder 6.0 -- use findAdminTask() . |
java.util.Vector |
getAllUsersAccessRoles(User user)
Deprecated. Deprecated in IdentityMinder 6.0 -- use getAccessRolesMember() on the User object. |
java.util.Vector |
getGroupAdmins(Group group,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use a getAdmins()
method in Group . |
java.util.Vector |
getGroupMembers(Group group,
ObjectType objType,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use a getMembers()
method in Group . |
java.util.Vector |
getGroups(java.util.Vector searchFilter)
Deprecated. Deprecated in IdentityMinder 6.0 -- use GroupProvider . |
java.util.Vector |
getGroupsAdminCanAdminister(User user,
Organization org,
SearchDepthType scope,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use getGroupsAdminCanAssign() . |
ManagedObject |
getManagedObject(java.lang.String ObjectId,
ObjectType objectType,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use ProviderService . |
ResultSet |
getManagedObjects(Organization org,
ObjectType objectType,
SearchDepthType scope,
java.util.Vector searchFilter,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use ProviderService . |
ResultSet |
getManagedObjects(Organization org,
ObjectType objectType,
java.util.Vector searchFilter,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use ProviderService . |
Organization |
getOrg(ManagedObject mobj)
Deprecated. Deprecated in IdentityMinder 6.0 -- use a getOrg() method
in ManagedObject .
Business logic task handlers can also use getOrg()
to retrieve the organization involved in the current task. |
java.util.Vector |
getOrgMembers(Organization org,
ObjectType objType,
SearchDepthType scope,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use a getMembers()
method in Organization . |
Organization |
getRootOrg()
Retrieves the root organization of the directory. |
java.util.Vector |
getSubOrgs(Organization org,
java.util.Enumeration attributes)
Deprecated. Deprecated in IdentityMinder 6.0 -- use a getOrgsInOrg()
method in OrganizationProvider . |
java.lang.String |
getTemporaryPassword(java.lang.String userID)
Generates a temporary password for the specified user. |
java.lang.String |
getTempPassword(User user)
Generates a temporary password for the specified user. |
boolean |
isPasswordValid(User user,
PasswordCondition passwordCondition)
Deprecated. As of r12, replaced by #validateNewPassword(String) |
boolean |
isPasswordValid(User user,
java.lang.String password,
PasswordCondition passwordCondition)
Deprecated. As of r12, replaced by #validateNewPassword(String) |
boolean |
isTopMostOrgWhichTaskIsBoundTo(Organization org,
AdminTask adminTask)
Deprecated. Deprecated in IdentityMinder 6.0. Tasks are no longer bound to organizations. |
java.lang.String |
validatePassword(User user)
Determine if the password specified in the given User object is an acceptable password for this user. |
java.lang.String |
validatePassword(User user,
java.lang.String password)
Determine if a given string would be acceptable as a new password for given user. |
Method Detail |
---|
java.util.Vector getGroups(java.util.Vector searchFilter) throws java.lang.Exception
GroupProvider
.
searchFilter
- The search criteria.
java.lang.Exception
java.util.Vector getGroupMembers(Group group, ObjectType objType, java.util.Enumeration attributes) throws java.lang.Exception
getMembers()
method in Group
.
group
- The group whose members are being retrieved.objType
- The type of objects in the group.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed objects.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of each returned object.
java.lang.Exception
java.util.Vector getGroupAdmins(Group group, java.util.Enumeration attributes) throws java.lang.Exception
getAdmins()
method in Group
.
group
- The group in question.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed objects.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of each returned object.
java.lang.Exception
java.util.Vector getOrgMembers(Organization org, ObjectType objType, SearchDepthType scope, java.util.Enumeration attributes) throws java.lang.Exception
getMembers()
method in Organization
.
org
- The organization whose members are being retrieved.objType
- The type of object to retrieve from the organization.scope
- The organization level(s) to search -- that is, search only
the organization specified in org
,
or search that organization and all of its children.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed objects.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of each returned object.
java.lang.Exception
ResultSet getManagedObjects(Organization org, ObjectType objectType, java.util.Vector searchFilter, java.util.Enumeration attributes) throws java.lang.Exception
ProviderService
.
searchFilter
parameter lets you limit the search result
to a defined subset of the managed objects. The search filter
must comply with the search requirements of the target user directory.
The following example creates a search filter and adds it to the
Vector of search filters. The Vector can then be passed to the method:
SearchExpression exp = new SearchExpression("AcountName", OperatorType.EQUALS, "jen*" ); Vector searchFilter = new Vector(); searchFilter.addElement(exp);
org
- The organization to search.objectType
- The type of managed object to retrieve from the organization.searchFilter
- The search criteria that let you retrieve a subset of managed
objects of the specified type. This parameter is a Vector of
SearchExpression
objects.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed objects.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of each returned object.
java.lang.Exception
ResultSet getManagedObjects(Organization org, ObjectType objectType, SearchDepthType scope, java.util.Vector searchFilter, java.util.Enumeration attributes) throws java.lang.Exception
ProviderService
.
searchFilter
parameter lets you limit the search result
to a defined subset of the managed objects. The search filter
must comply with the search requirements of the target user directory.
For an example of creating a search filter and adding it to the
searchFilter
Vector, see
getManagedObjects()
.
org
- The organization to search.objectType
- The type of managed object to retrieve from the organization.scope
- The organization level(s) to search -- that is, search only
the organization specified in org
,
or search that organization and all of its children.searchFilter
- The search criteria that let you retrieve a subset of managed
objects of the specified type. This parameter is a Vector of
SearchExpression
objects.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed objects.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of each returned object.
java.lang.Exception
ManagedObject getManagedObject(java.lang.String ObjectId, ObjectType objectType, java.util.Enumeration attributes) throws java.lang.Exception
ProviderService
.
ObjectId
- The unique ID of the managed object to retieve.objectType
- The type of managed object to retrieve.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed object.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of the returned object.
java.lang.Exception
boolean canUserAdministerGroup(User user, Group group) throws java.lang.Exception
canUserAdministerGroup()
.
user
- The administrator in question.group
- The group that the administrator may be allowed to manage.
true
if the administrator can manage the
group, or false
otherwise.
java.lang.Exception
java.util.Vector getGroupsAdminCanAdminister(User user, Organization org, SearchDepthType scope, java.util.Enumeration attributes) throws java.lang.Exception
getGroupsAdminCanAssign()
.
user
- The administrator in question.org
- The organization where the groups are located.scope
- The organization level(s) to search -- that is, search only
the organization specified in org
,
or search that organization and all of its children.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed objects.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of each returned object.
java.lang.Exception
boolean isPasswordValid(User user, PasswordCondition passwordCondition) throws java.lang.Exception
#validateNewPassword(String)
user
- The user whose password is being validated.passwordCondition
- If the password is invalid, this output parameter
returns with a password condition object that
includes the reason that the error is invalid
and, if applicable, a condition code that lets
you retrieve the password attribute value that
violates the password policy.
true
if the password is valid, or false
otherwise.
java.lang.Exception
boolean isPasswordValid(User user, java.lang.String password, PasswordCondition passwordCondition) throws java.lang.Exception
#validateNewPassword(String)
user
- The user whose password is being validated.password
- The password to validate.passwordCondition
- If the password is invalid, this output parameter
returns with a password condition object that
includes the reason that the error is invalid
and, if applicable, a condition code that lets
you retrieve the password attribute value that
violates the password policy.
true
if the password is valid, or false
otherwise.
java.lang.Exception
java.lang.String validatePassword(User user) throws java.lang.Exception, PasswordPolicyException
Determine if the password specified in the given User object is an acceptable password for this user. The result can be a factor of such things as password policies, business rules, etc. This method will throw an exception if the password is invalid. Some password policies may transform a password (for example, to remove whitespace). The valid transformed password is returned.
newPassword
- Proposed password value to check
SmApiException
- An exception occurred while trying to validate the password.
PasswordPolicyException
- The proposed password is not valid. This exception
contains a PasswordCondition
object that is populated with information on why a
proposed password could not be validated.
java.lang.Exception
java.lang.String validatePassword(User user, java.lang.String password) throws java.lang.Exception, PasswordPolicyException
Determine if a given string would be acceptable as a new password for given user. The result can be a factor of such things as password policies, business rules, etc. This method will throw an exception if the password is invalid. Some password policies may transform a password (for example, to remove whitespace). The valid transformed password is returned.
newPassword
- Proposed password value to check
SmApiException
- An exception occurred while trying to validate the password.
PasswordPolicyException
- The proposed password is not valid. This exception
contains a PasswordCondition
object that is populated with information on why a
proposed password could not be validated.
java.lang.Exception
java.lang.String getTempPassword(User user) throws java.lang.Exception
user
- The user for whom a temporary password is being generated.
java.lang.Exception
boolean isTopMostOrgWhichTaskIsBoundTo(Organization org, AdminTask adminTask) throws java.lang.Exception
org
- The organization in question.adminTask
- The admin task in question.
true
if the organization is the topmost organization
where the task can be executed, or false
otherwise.
java.lang.Exception
java.util.Vector getAllUsersAccessRoles(User user) throws java.lang.Exception
getAccessRolesMember()
on the User
object.
user
- The user whose access roles are being retrieved.
java.lang.Exception
java.util.Vector getSubOrgs(Organization org, java.util.Enumeration attributes) throws java.lang.Exception
getOrgsInOrg()
method in OrganizationProvider
.
org
- The organization to search for child organizations.attributes
- An enumeration that lets you specify the attributes that
you want to be available in the returned managed objects.
To make all attributes available, pass null
in
this parameter. If this parameter is empty, the only available
attribute will be the unique name of each returned object.
java.lang.Exception
Organization getOrg(ManagedObject mobj) throws java.lang.Exception
getOrg()
method
in ManagedObject
.
Business logic task handlers can also use getOrg()
to retrieve the organization involved in the current task.
mobj
- The managed object in question.
java.lang.Exception
AdminTask findAdminTask(java.lang.String taskName) throws java.lang.Exception
findAdminTask()
.
taskName
- The name of the admin task.
java.lang.Exception
java.lang.String encryptString(java.lang.String toEncrypt) throws java.lang.Exception
encryptString()
and decryptString()
methods use the same hard-coded encryption functionality in all cases.
There is no mechanism provided for encryption key management.
toEncrypt
- The string to encrypt.
java.lang.Exception
java.lang.String encryptString(java.lang.String key, java.lang.String toEncrypt) throws java.lang.Exception
encryptString()
and decryptString()
methods use the same hard-coded encryption functionality in all cases.
key
- The encryption key.toEncrypt
- The string to encrypt.
java.lang.Exception
java.lang.String decryptString(java.lang.String toDecrypt) throws java.lang.Exception
encryptString()
method.
The RSA JSafe encryption library is used to decrypt the string.
encryptString()
and decryptString()
methods use the same hard-coded encryption functionality in all cases.
There is no mechanism provided for encryption key management.
toDecrypt
- The string to decrypt.
java.lang.Exception
java.lang.String decryptString(java.lang.String key, java.lang.String toDecrypt) throws java.lang.Exception
encryptString()
method.
The RSA JSafe encryption library is used to decrypt the string.
encryptString()
and decryptString()
methods use the same hard-coded encryption functionality in all cases.
There is no mechanism provided for encryption key management.
key
- The encryption key.toDecrypt
- The string to decrypt.
java.lang.Exception
java.lang.String getTemporaryPassword(java.lang.String userID) throws java.lang.Exception
userID
- The user's ID.
java.lang.Exception
Organization getRootOrg() throws java.lang.Exception
java.lang.Exception
boolean doesSupportOrganization() throws java.lang.Exception
true
if the current environment supports organizations, or
false
otherwise.
java.lang.Exception
boolean doesSupportGroup() throws java.lang.Exception
true
if the current environment supports groups, or
false
otherwise.
java.lang.Exception
void convertLogicalToPhysical(java.util.Vector results) throws java.lang.Exception
results
- The list of logical attributes to convert to physical attributes.
java.lang.Exception
void convertPhysicalToLogical(java.util.Vector results) throws java.lang.Exception
results
- The list of physical attributes to convert to logical attributes.
java.lang.Exception
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |