public class IdentityServicesImpl extends Object implements IdentityServicesImpl
Constructor and Description |
---|
IdentityServicesImpl() |
Modifier and Type | Method and 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) |
UserDetails |
attributes(String[] attributeNames,
Token subject,
Boolean refresh) |
void |
create(IdentityDetails identity,
SSOToken admin)
Creates a new
AMIdentity in the identity repository with the
details specified in identity . |
void |
delete(IdentityDetails identity,
SSOToken admin)
Deletes an
AMIdentity from the identity repository that match
the details specified in identity . |
String |
getCookieNameForToken() |
String[] |
getCookieNamesToForward() |
LogResponse |
log(Token app,
Token subject,
String logName,
String message) |
IdentityDetails |
read(String name,
Attribute[] attributes,
Token admin) |
IdentityDetails |
read(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.
|
void |
update(IdentityDetails identity,
SSOToken admin)
Updates an
AMIdentity in the identity repository with the
details specified in identity . |
public void create(IdentityDetails identity, SSOToken admin) throws org.forgerock.json.resource.ResourceException
AMIdentity
in the identity repository with the
details specified in identity
.identity
- The identity details.admin
- The admin token.org.forgerock.json.resource.ResourceException
- If a problem occurs.public void update(IdentityDetails identity, SSOToken admin) throws org.forgerock.json.resource.ResourceException
AMIdentity
in the identity repository with the
details specified in identity
.identity
- The updated identity details.admin
- The admin token.org.forgerock.json.resource.ResourceException
- If a problem occurs.public void delete(IdentityDetails identity, SSOToken admin) throws org.forgerock.json.resource.ResourceException
AMIdentity
from the identity repository that match
the details specified in identity
.identity
- The identity to delete.admin
- The admin token.org.forgerock.json.resource.ResourceException
- If a problem occurs.public List<String> search(CrestQuery crestQuery, Map<String,Set<String>> searchModifiers, SSOToken admin) throws org.forgerock.json.resource.ResourceException
crestQuery
- A CREST Query object which will contain either a _queryId or a _queryFilter.searchModifiers
- The search modifiersadmin
- Your SSO token.org.forgerock.json.resource.ResourceException
public List<IdentityDetails> searchIdentityDetails(CrestQuery crestQuery, Map<String,Set<String>> searchModifiers, SSOToken admin) throws org.forgerock.json.resource.ResourceException
crestQuery
- A CREST Query object which will contain either a _queryId or a _queryFilter.searchModifiers
- The search modifiersadmin
- Your SSO token.org.forgerock.json.resource.ResourceException
public LogResponse log(Token app, Token subject, String logName, String message) throws AccessDenied, TokenExpired, GeneralFailure
log
in interface IdentityServicesImpl
AccessDenied
TokenExpired
GeneralFailure
public UserDetails attributes(String[] attributeNames, Token subject, Boolean refresh) throws TokenExpired, GeneralFailure, AccessDenied
attributes
in interface IdentityServicesImpl
TokenExpired
GeneralFailure
AccessDenied
public IdentityDetails read(String name, Attribute[] attributes, Token admin) throws IdServicesException
read
in interface IdentityServicesImpl
IdServicesException
public IdentityDetails read(String name, Map<String,Set<String>> attributes, SSOToken admin) throws IdServicesException
IdServicesException
public String getCookieNameForToken() throws GeneralFailure
getCookieNameForToken
in interface IdentityServicesImpl
GeneralFailure
public String[] getCookieNamesToForward() throws GeneralFailure
getCookieNamesToForward
in interface IdentityServicesImpl
GeneralFailure
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.