Package com.aducid.sdk
Class AbstractAducidClient
java.lang.Object
com.aducid.sdk.AbstractAducidClient
- Direct Known Subclasses:
AducidClient
public abstract class AbstractAducidClient
extends java.lang.Object
Abstract client for accessing ADUCID operations.
Created 11. 4. 2018 9:59:11
- Author:
- Radek Jira
-
Constructor Summary
Constructors Constructor Description AbstractAducidClient(java.lang.String aimUrl)
Constructor with AIM R4 service URL.AbstractAducidClient(java.lang.String aimUrl, AducidMessageSender messageSender)
Constructor with AIM R4 service URL and message sender. -
Method Summary
Modifier and Type Method Description com.aducid.iface.AIMexecutePersonalObjectResponse
callDPO(byte[] authId, byte[] authKey, MethodName methodName, com.aducid.iface.PersonalObjectType personalObject)
Performs operation on directory personal object.com.aducid.iface.AIMrequestOperationResponse
callOperation(OperationName operationName, MethodName methodName, java.util.List<com.aducid.iface.MethodParameterType> methodParameterList, com.aducid.iface.PersonalObjectType personalObject, RequestOperationArguments arguments)
Calls operation.com.aducid.iface.AIMrequestOperationResponse
callPPO(MethodName methodName, java.util.List<com.aducid.iface.MethodParameterType> methodParameterList, com.aducid.iface.PersonalObjectType personalObject, RequestOperationArguments arguments)
Performs operation on pocket personal object.com.aducid.iface.AIMrequestOperationResponse
change(RequestOperationArguments arguments)
Performs identity change operation.com.aducid.iface.AIMrequestOperationResponse
delete(RequestOperationArguments arguments)
Performs identity delete operation.com.aducid.iface.AIMcloseSessionResponse
endAuthenticationSession(byte[] authId, byte[] authKey)
Ends authentication session.java.lang.String
getAimUrl()
Returns AIM R4 service URL.com.aducid.iface.AIMgetPSLAttributesResponse
getResult(byte[] authId, byte[] authKey, AttributeSetName attributeSetName)
Returns result of previous authentication operation.com.aducid.iface.AIMgetPSLAttributesResponse
getResult(byte[] authId, byte[] authKey, AttributeSetName attributeSetName, java.lang.String offLineLoginName, java.lang.String offLinePassword, java.lang.String offLineLoginWord)
Returns result of previous authentication operation.com.aducid.iface.AIMrequestOperationResponse
init(RequestOperationArguments arguments)
Performs identity initialization.com.aducid.iface.AIMrequestOperationResponse
rechange(RequestOperationArguments arguments)
Performs identity re-change operation.com.aducid.iface.AIMrequestOperationResponse
reinit(RequestOperationArguments arguments)
Performs identity re-initialization operation.com.aducid.iface.AIMrequestOperationResponse
startAuthenticationSession(RequestOperationArguments arguments)
Starts authentication session.
-
Constructor Details
-
AbstractAducidClient
public AbstractAducidClient(java.lang.String aimUrl)Constructor with AIM R4 service URL.- Parameters:
aimUrl
- AIM R4 service URL
-
AbstractAducidClient
Constructor with AIM R4 service URL and message sender.- Parameters:
aimUrl
- AIM R4 service URLmessageSender
- message sender
-
-
Method Details
-
getAimUrl
public java.lang.String getAimUrl()Returns AIM R4 service URL.
- Returns:
- AIM R4 service URL
-
startAuthenticationSession
public com.aducid.iface.AIMrequestOperationResponse startAuthenticationSession(RequestOperationArguments arguments) throws AducidClientExceptionStarts authentication session.- Parameters:
arguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
endAuthenticationSession
public com.aducid.iface.AIMcloseSessionResponse endAuthenticationSession(byte[] authId, byte[] authKey) throws AducidClientExceptionEnds authentication session.- Parameters:
authId
- authIdauthKey
- authKey- Returns:
- close session response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
init
public com.aducid.iface.AIMrequestOperationResponse init(RequestOperationArguments arguments) throws AducidClientExceptionPerforms identity initialization.- Parameters:
arguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
reinit
public com.aducid.iface.AIMrequestOperationResponse reinit(RequestOperationArguments arguments) throws AducidClientExceptionPerforms identity re-initialization operation.- Parameters:
arguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
change
public com.aducid.iface.AIMrequestOperationResponse change(RequestOperationArguments arguments) throws AducidClientExceptionPerforms identity change operation.- Parameters:
arguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
rechange
public com.aducid.iface.AIMrequestOperationResponse rechange(RequestOperationArguments arguments) throws AducidClientExceptionPerforms identity re-change operation.- Parameters:
arguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
delete
public com.aducid.iface.AIMrequestOperationResponse delete(RequestOperationArguments arguments) throws AducidClientExceptionPerforms identity delete operation.- Parameters:
arguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
callPPO
public com.aducid.iface.AIMrequestOperationResponse callPPO(MethodName methodName, java.util.List<com.aducid.iface.MethodParameterType> methodParameterList, com.aducid.iface.PersonalObjectType personalObject, RequestOperationArguments arguments) throws AducidClientExceptionPerforms operation on pocket personal object.- Parameters:
methodName
- method namemethodParameterList
- method parameter listpersonalObject
- personal objectarguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
callDPO
public com.aducid.iface.AIMexecutePersonalObjectResponse callDPO(byte[] authId, byte[] authKey, MethodName methodName, com.aducid.iface.PersonalObjectType personalObject) throws AducidClientExceptionPerforms operation on directory personal object.- Parameters:
authId
- authentication identifierauthKey
- authentication keymethodName
- method namepersonalObject
- personal object- Returns:
- execute personal object response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
getResult
public com.aducid.iface.AIMgetPSLAttributesResponse getResult(byte[] authId, byte[] authKey, AttributeSetName attributeSetName) throws AducidClientExceptionReturns result of previous authentication operation.- Parameters:
authId
- authIdauthKey
- authKeyattributeSetName
- attribute set name- Returns:
- get PSL attributes response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
getResult
public com.aducid.iface.AIMgetPSLAttributesResponse getResult(byte[] authId, byte[] authKey, AttributeSetName attributeSetName, java.lang.String offLineLoginName, java.lang.String offLinePassword, java.lang.String offLineLoginWord) throws AducidClientExceptionReturns result of previous authentication operation.- Parameters:
authId
- authIdauthKey
- authKeyattributeSetName
- attribute set nameoffLineLoginName
- off line login nameoffLinePassword
- off line passwordoffLineLoginWord
- off line login word- Returns:
- get PSL attributes response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-
callOperation
public com.aducid.iface.AIMrequestOperationResponse callOperation(OperationName operationName, MethodName methodName, java.util.List<com.aducid.iface.MethodParameterType> methodParameterList, com.aducid.iface.PersonalObjectType personalObject, RequestOperationArguments arguments) throws AducidClientExceptionCalls operation.- Parameters:
operationName
- operation namemethodName
- method namemethodParameterList
- method parameter listpersonalObject
- personal objectarguments
- request operation arguments- Returns:
- request operation response
- Throws:
AducidClientException
- when error occurs during ADUCID client call
-