Package com.sun.identity.idsvcs.opensso
Class IdentityServicesImpl
- java.lang.Object
-
- com.sun.identity.idsvcs.opensso.IdentityServicesImpl
-
- All Implemented Interfaces:
IdentityServicesImpl,Remote
public class IdentityServicesImpl extends Object implements IdentityServicesImpl
Web Service to provide security based on authentication and authorization support.
-
-
Constructor Summary
Constructors Constructor Description IdentityServicesImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Attribute[]asAttributeArray(Map<String,Set<String>> attributes)static List<String>asListOfKeys(Map<String,Set<String>> map)Take a map and capture the keys in a list.static Map<String,Set<String>>asMap(Attribute... attributes)UserDetailsattributes(String[] attributeNames, Token subject, Boolean refresh)voidcreate(IdentityDetails identity, SSOToken admin)Creates a newAMIdentityin the identity repository with the details specified inidentity.voiddelete(IdentityDetails identity, SSOToken admin)Deletes anAMIdentityfrom the identity repository that match the details specified inidentity.StringgetCookieNameForToken()String[]getCookieNamesToForward()LogResponselog(Token app, Token subject, String logName, String message)IdentityDetailsread(String name, Attribute[] attributes, Token admin)IdentityDetailsread(String name, Map<String,Set<String>> attributes, SSOToken admin)List<String>search(CrestQuery crestQuery, Map<String,Set<String>> searchModifiers, SSOToken admin)Searches the identity repository to find all identities that match the search criteria.List<IdentityDetails>searchIdentityDetails(CrestQuery crestQuery, Map<String,Set<String>> searchModifiers, SSOToken admin)Searches the identity repository to find all identities that match the search criteria and returns them as a list of identities.voidupdate(IdentityDetails identity, SSOToken admin)Updates anAMIdentityin the identity repository with the details specified inidentity.
-
-
-
Method Detail
-
create
public void create(IdentityDetails identity, SSOToken admin) throws org.forgerock.json.resource.ResourceException
Creates a newAMIdentityin the identity repository with the details specified inidentity.- Parameters:
identity- The identity details.admin- The admin token.- Throws:
org.forgerock.json.resource.ResourceException- If a problem occurs.
-
update
public void update(IdentityDetails identity, SSOToken admin) throws org.forgerock.json.resource.ResourceException
Updates anAMIdentityin the identity repository with the details specified inidentity.- Parameters:
identity- The updated identity details.admin- The admin token.- Throws:
org.forgerock.json.resource.ResourceException- If a problem occurs.
-
delete
public void delete(IdentityDetails identity, SSOToken admin) throws org.forgerock.json.resource.ResourceException
Deletes anAMIdentityfrom the identity repository that match the details specified inidentity.- Parameters:
identity- The identity to delete.admin- The admin token.- Throws:
org.forgerock.json.resource.ResourceException- If a problem occurs.
-
search
public List<String> search(CrestQuery crestQuery, Map<String,Set<String>> searchModifiers, SSOToken admin) throws org.forgerock.json.resource.ResourceException
Searches the identity repository to find all identities that match the search criteria.- Parameters:
crestQuery- A CREST Query object which will contain either a _queryId or a _queryFilter.searchModifiers- The search modifiersadmin- Your SSO token.- Returns:
- a list of matching identifiers.
- Throws:
org.forgerock.json.resource.ResourceException
-
searchIdentityDetails
public List<IdentityDetails> searchIdentityDetails(CrestQuery crestQuery, Map<String,Set<String>> searchModifiers, SSOToken admin) throws org.forgerock.json.resource.ResourceException
Searches the identity repository to find all identities that match the search criteria and returns them as a list of identities.- Parameters:
crestQuery- A CREST Query object which will contain either a _queryId or a _queryFilter.searchModifiers- The search modifiersadmin- Your SSO token.- Returns:
- a list of matching identities.
- Throws:
org.forgerock.json.resource.ResourceException
-
log
public LogResponse log(Token app, Token subject, String logName, String message) throws AccessDenied, TokenExpired, GeneralFailure
- Specified by:
login interfaceIdentityServicesImpl- Throws:
AccessDeniedTokenExpiredGeneralFailure
-
attributes
public UserDetails attributes(String[] attributeNames, Token subject, Boolean refresh) throws TokenExpired, GeneralFailure, AccessDenied
- Specified by:
attributesin interfaceIdentityServicesImpl- Throws:
TokenExpiredGeneralFailureAccessDenied
-
read
public IdentityDetails read(String name, Attribute[] attributes, Token admin) throws IdServicesException
- Specified by:
readin interfaceIdentityServicesImpl- Throws:
IdServicesException
-
read
public IdentityDetails read(String name, Map<String,Set<String>> attributes, SSOToken admin) throws IdServicesException
- Throws:
IdServicesException
-
getCookieNameForToken
public String getCookieNameForToken() throws GeneralFailure
- Specified by:
getCookieNameForTokenin interfaceIdentityServicesImpl- Throws:
GeneralFailure
-
getCookieNamesToForward
public String[] getCookieNamesToForward() throws GeneralFailure
- Specified by:
getCookieNamesToForwardin interfaceIdentityServicesImpl- Throws:
GeneralFailure
-
-