public class IdServicesImpl extends Object implements IdServices
Modifier and Type | Field and Description |
---|---|
protected static Debug |
DEBUG |
protected IdSearchResults |
emptyUserIdentities |
protected static boolean |
shutdownCalled |
protected IdSearchResults |
specialIdentities |
protected Set |
specialIdentityNames |
Modifier | Constructor and Description |
---|---|
protected |
IdServicesImpl() |
Modifier and Type | Method and Description |
---|---|
void |
assignService(SSOToken token,
IdType type,
String name,
String serviceName,
SchemaType stype,
Map attrMap,
String amOrgName,
String amsdkDN) |
boolean |
authenticate(String orgName,
Callback[] credentials)
Returns
true if the data store has successfully
authenticated the identity with the specific type and provided credentials. |
boolean |
authenticate(String orgName,
Callback[] credentials,
IdType idType)
Returns
true if the data store has successfully
authenticated the identity with the specific type and provided credentials. |
void |
changePassword(SSOToken token,
IdType type,
String name,
String oldPassword,
String newPassword,
String amOrgName,
String amsdkDN) |
void |
clearIdRepoPlugins() |
void |
clearIdRepoPlugins(String orgName,
String serviceComponent,
int type) |
protected void |
clearSpecialIdentityCache() |
AMIdentity |
create(SSOToken token,
IdType type,
String name,
Map attrMap,
String amOrgName) |
void |
delete(SSOToken token,
IdType type,
String name,
String orgName,
String amsdkDN) |
Set<String> |
getAssignedServices(SSOToken token,
IdType type,
String name,
Map mapOfServiceNamesAndOCs,
String amOrgName,
String amsdkDN) |
Map |
getAttributes(SSOToken token,
IdType type,
String name,
Set attrNames,
String amOrgName,
String amsdkDN,
boolean isString) |
Map |
getAttributes(SSOToken token,
IdType type,
String name,
String amOrgName,
String amsdkDN) |
Map |
getBinaryServiceAttributes(SSOToken token,
IdType type,
String name,
String serviceName,
Set attrNames,
String amOrgName,
String amsdkDN) |
Set |
getFullyQualifiedNames(SSOToken token,
IdType type,
String name,
String orgName)
Returns the set of fully qualified names for the identity.
|
protected static IdServices |
getInstance() |
Set |
getMembers(SSOToken token,
IdType type,
String name,
String amOrgName,
IdType membersType,
String amsdkDN) |
Set |
getMemberships(SSOToken token,
IdType type,
String name,
IdType membershipType,
String amOrgName,
String amsdkDN) |
Map |
getServiceAttributes(SSOToken token,
IdType type,
String name,
String serviceName,
Set attrNames,
String amOrgName,
String amsdkDN) |
Map |
getServiceAttributes(SSOToken token,
IdType type,
String name,
String serviceName,
Set attrNames,
String amOrgName,
String amsdkDN,
boolean isString) |
Map |
getServiceAttributesAscending(SSOToken token,
IdType type,
String name,
String serviceName,
Set attrNames,
String amOrgName,
String amsdkDN)
Non-javadoc, non-public methods
Get the service attributes of the name identity.
|
IdSearchResults |
getSpecialIdentities(SSOToken token,
IdType type,
String orgName) |
Set |
getSupportedOperations(SSOToken token,
IdType type,
String amOrgName) |
Set |
getSupportedTypes(SSOToken token,
String amOrgName) |
boolean |
isActive(SSOToken token,
IdType type,
String name,
String amOrgName,
String amsdkDN) |
boolean |
isExists(SSOToken token,
IdType type,
String name,
String amOrgName) |
static boolean |
isShutdownCalled() |
protected boolean |
isSpecialIdentity(SSOToken token,
String name,
IdType type,
String orgName) |
void |
modifyMemberShip(SSOToken token,
IdType type,
String name,
Set members,
IdType membersType,
int operation,
String amOrgName) |
void |
modifyService(SSOToken token,
IdType type,
String name,
String serviceName,
SchemaType stype,
Map attrMap,
String amOrgName,
String amsdkDN) |
void |
reinitialize() |
void |
reloadIdRepoServiceSchema() |
void |
removeAttributes(SSOToken token,
IdType type,
String name,
Set attrNames,
String amOrgName,
String amsdkDN) |
IdSearchResults |
search(SSOToken token,
IdType type,
IdSearchControl ctrl,
String amOrgName,
CrestQuery crestQuery)
By passing in a CrestQuery object, we now support searching by id (via _queryId) or by filter (_queryFilter).
|
void |
setActiveStatus(SSOToken token,
IdType type,
String name,
String amOrgName,
String amsdkDN,
boolean active) |
void |
setAttributes(SSOToken token,
IdType type,
String name,
Map attributes,
boolean isAdd,
String amOrgName,
String amsdkDN,
boolean isString) |
void |
unassignService(SSOToken token,
IdType type,
String name,
String serviceName,
Map attrMap,
String amOrgName,
String amsdkDN) |
protected static final Debug DEBUG
protected Set specialIdentityNames
protected IdSearchResults specialIdentities
protected IdSearchResults emptyUserIdentities
protected static volatile boolean shutdownCalled
protected static IdServices getInstance()
public void reinitialize()
reinitialize
in interface IdServices
public static boolean isShutdownCalled()
public Set getFullyQualifiedNames(SSOToken token, IdType type, String name, String orgName) throws IdRepoException, SSOException
getFullyQualifiedNames
in interface IdServices
token
- SSOToken that can be used by the datastore
to determine the fully qualified nametype
- type of the identityname
- name of the identityIdRepoException
- If there are repository related error conditionsSSOException
- If identity's single sign on token is invalidpublic boolean authenticate(String orgName, Callback[] credentials) throws IdRepoException, AuthLoginException
IdServices
true
if the data store has successfully
authenticated the identity with the specific type and provided credentials. In case the
data store requires additional credentials, the list would be returned
via the IdRepoException
exception.authenticate
in interface IdServices
orgName
- realm name to which the identity would be authenticatedcredentials
- Array of callback objects containing information such as
username and password.true
if data store authenticates the identity;
else false
IdRepoException
AuthLoginException
public boolean authenticate(String orgName, Callback[] credentials, IdType idType) throws IdRepoException, AuthLoginException
IdServices
true
if the data store has successfully
authenticated the identity with the specific type and provided credentials. In case the
data store requires additional credentials, the list would be returned
via the IdRepoException
exception.authenticate
in interface IdServices
orgName
- realm name to which the identity would be authenticatedcredentials
- Array of callback objects containing information such as
username and password.idType
- The type of identity, or null for any.true
if data store authenticates the identity;
else false
IdRepoException
AuthLoginException
public AMIdentity create(SSOToken token, IdType type, String name, Map attrMap, String amOrgName) throws IdRepoException, SSOException
create
in interface IdServices
IdRepoException
SSOException
public void delete(SSOToken token, IdType type, String name, String orgName, String amsdkDN) throws IdRepoException, SSOException
delete
in interface IdServices
IdRepoException
SSOException
public Map getAttributes(SSOToken token, IdType type, String name, Set attrNames, String amOrgName, String amsdkDN, boolean isString) throws IdRepoException, SSOException
getAttributes
in interface IdServices
IdRepoException
SSOException
public Map getAttributes(SSOToken token, IdType type, String name, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getAttributes
in interface IdServices
IdRepoException
SSOException
public Set getMembers(SSOToken token, IdType type, String name, String amOrgName, IdType membersType, String amsdkDN) throws IdRepoException, SSOException
getMembers
in interface IdServices
IdRepoException
SSOException
public Set getMemberships(SSOToken token, IdType type, String name, IdType membershipType, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getMemberships
in interface IdServices
IdRepoException
SSOException
public boolean isExists(SSOToken token, IdType type, String name, String amOrgName) throws SSOException, IdRepoException
isExists
in interface IdServices
SSOException
IdRepoException
public boolean isActive(SSOToken token, IdType type, String name, String amOrgName, String amsdkDN) throws SSOException, IdRepoException
isActive
in interface IdServices
SSOException
IdRepoException
public void setActiveStatus(SSOToken token, IdType type, String name, String amOrgName, String amsdkDN, boolean active) throws SSOException, IdRepoException
setActiveStatus
in interface IdServices
SSOException
IdRepoException
public void modifyMemberShip(SSOToken token, IdType type, String name, Set members, IdType membersType, int operation, String amOrgName) throws IdRepoException, SSOException
modifyMemberShip
in interface IdServices
IdRepoException
SSOException
public void removeAttributes(SSOToken token, IdType type, String name, Set attrNames, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
removeAttributes
in interface IdServices
IdRepoException
SSOException
public IdSearchResults search(SSOToken token, IdType type, IdSearchControl ctrl, String amOrgName, CrestQuery crestQuery) throws IdRepoException, SSOException
IdServices
search
in interface IdServices
token
- is the sso token of the person performing this operation.type
- is the identity type of the name parameter.ctrl
- the search controlamOrgName
- is the orgname.crestQuery
- encapsulates _queryId or _queryFilter from the CREST endpoint.IdRepoException
- if there are repository related error conditions.SSOException
- if user's single sign on token is invalid.public IdSearchResults getSpecialIdentities(SSOToken token, IdType type, String orgName) throws IdRepoException, SSOException
getSpecialIdentities
in interface IdServices
IdRepoException
SSOException
protected boolean isSpecialIdentity(SSOToken token, String name, IdType type, String orgName) throws IdRepoException, SSOException
IdRepoException
SSOException
public void setAttributes(SSOToken token, IdType type, String name, Map attributes, boolean isAdd, String amOrgName, String amsdkDN, boolean isString) throws IdRepoException, SSOException
setAttributes
in interface IdServices
IdRepoException
SSOException
public void changePassword(SSOToken token, IdType type, String name, String oldPassword, String newPassword, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
changePassword
in interface IdServices
IdRepoException
SSOException
public Set<String> getAssignedServices(SSOToken token, IdType type, String name, Map mapOfServiceNamesAndOCs, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getAssignedServices
in interface IdServices
IdRepoException
SSOException
public void assignService(SSOToken token, IdType type, String name, String serviceName, SchemaType stype, Map attrMap, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
assignService
in interface IdServices
IdRepoException
SSOException
public void unassignService(SSOToken token, IdType type, String name, String serviceName, Map attrMap, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
unassignService
in interface IdServices
IdRepoException
SSOException
public Map getServiceAttributesAscending(SSOToken token, IdType type, String name, String serviceName, Set attrNames, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getServiceAttributesAscending
in interface IdServices
token
- is the sso token of the person performing this operation.type
- is the identity type of the name parameter.name
- is the identity we are interested in.serviceName
- is the service we are interested inattrNames
- are the name of the attributes wer are interested in.amOrgName
- is the orgname.amsdkDN
- is the amsdkDN.IdRepoException
- if there are repository related error conditions.SSOException
- if user's single sign on token is invalid.public Map getServiceAttributes(SSOToken token, IdType type, String name, String serviceName, Set attrNames, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getServiceAttributes
in interface IdServices
IdRepoException
SSOException
public Map getBinaryServiceAttributes(SSOToken token, IdType type, String name, String serviceName, Set attrNames, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getBinaryServiceAttributes
in interface IdServices
IdRepoException
SSOException
public Map getServiceAttributes(SSOToken token, IdType type, String name, String serviceName, Set attrNames, String amOrgName, String amsdkDN, boolean isString) throws IdRepoException, SSOException
IdRepoException
SSOException
public void modifyService(SSOToken token, IdType type, String name, String serviceName, SchemaType stype, Map attrMap, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
modifyService
in interface IdServices
IdRepoException
SSOException
public Set getSupportedTypes(SSOToken token, String amOrgName) throws IdRepoException, SSOException
getSupportedTypes
in interface IdServices
IdRepoException
SSOException
public Set getSupportedOperations(SSOToken token, IdType type, String amOrgName) throws IdRepoException, SSOException
getSupportedOperations
in interface IdServices
IdRepoException
SSOException
protected void clearSpecialIdentityCache()
public void clearIdRepoPlugins()
clearIdRepoPlugins
in interface IdServices
public void clearIdRepoPlugins(String orgName, String serviceComponent, int type)
clearIdRepoPlugins
in interface IdServices
public void reloadIdRepoServiceSchema()
reloadIdRepoServiceSchema
in interface IdServices
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.