public class IdRemoteServicesImpl extends Object implements IdServices
Modifier and Type | Field and Description |
---|---|
static String |
AMSR_ATTRS |
static String |
AMSR_CODE |
static String |
AMSR_RESULTS |
protected static Debug |
DEBUG |
protected static String |
SDK_SERVICE |
Modifier | Constructor and Description |
---|---|
protected |
IdRemoteServicesImpl() |
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 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) |
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 |
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 org) |
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 |
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) |
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) |
protected void |
processException(Exception exception) |
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 String SDK_SERVICE
protected static final Debug DEBUG
public static final String AMSR_RESULTS
public static final String AMSR_CODE
public static final String AMSR_ATTRS
protected static IdServices getInstance()
protected void processException(Exception exception) throws SSOException, IdRepoException
SSOException
IdRepoException
public boolean authenticate(String orgName, Callback[] credentials)
true
if the data store has successfully
authenticated the identity with the 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
public boolean authenticate(String orgName, Callback[] credentials, IdType idType)
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
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 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 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 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 Set getAssignedServices(SSOToken token, IdType type, String name, Map mapOfServiceNamesAndOCs, String amOrgName, String amsdkDN) throws IdRepoException, SSOException
getAssignedServices
in interface IdServices
IdRepoException
SSOException
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 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 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 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 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 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 Set getSupportedOperations(SSOToken token, IdType type, String amOrgName) throws IdRepoException, SSOException
getSupportedOperations
in interface IdServices
IdRepoException
SSOException
public Set getSupportedTypes(SSOToken token, String amOrgName) throws IdRepoException, SSOException
getSupportedTypes
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 clearIdRepoPlugins(String orgName, String serviceComponent, int type)
clearIdRepoPlugins
in interface IdServices
public void clearIdRepoPlugins()
clearIdRepoPlugins
in interface IdServices
public void reloadIdRepoServiceSchema()
reloadIdRepoServiceSchema
in interface IdServices
public void reinitialize()
reinitialize
in interface IdServices
public Set getFullyQualifiedNames(SSOToken token, IdType type, String name, String org) throws IdRepoException, SSOException
getFullyQualifiedNames
in interface IdServices
IdRepoException
SSOException
public IdSearchResults getSpecialIdentities(SSOToken token, IdType type, String orgName) throws IdRepoException, SSOException
getSpecialIdentities
in interface IdServices
IdRepoException
SSOException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.