net.handle.hdllib
Class ChallengeAnswerRequest

java.lang.Object
  extended by net.handle.hdllib.AbstractMessage
      extended by net.handle.hdllib.AbstractRequest
          extended by net.handle.hdllib.ChallengeAnswerRequest
All Implemented Interfaces:
java.lang.Cloneable

public class ChallengeAnswerRequest
extends AbstractRequest

Object used to represent an answer to a challenge to authenticate.


Field Summary
 byte[] authType
           
 AbstractRequest originalRequest
           
 byte[] signedResponse
           
 byte[] userIdHandle
           
 int userIdIndex
           
 
Fields inherited from class net.handle.hdllib.AbstractRequest
authInfo, completed, connectionLock, handle, isAdminRequest, multithread, requiresConnection, sessionInfo, sessionTracker, siteInfoSerial, socketRef, streaming
 
Fields inherited from class net.handle.hdllib.AbstractMessage
authoritative, cacheCertify, certify, continuous, doNotRefer, encodedMessage, encrypt, expiration, ignoreRestrictedValues, keepAlive, majorProtocolVersion, messageBody, minorProtocolVersion, mintNewSuffix, OC_ADD_VALUE, OC_BACKUP_SERVER, OC_CREATE_HANDLE, OC_DELETE_HANDLE, OC_DUMP_HANDLES, OC_GET_NEXT_TXN_ID, OC_GET_SITE_INFO, OC_HOME_NA, OC_LIST_HANDLES, OC_LIST_HOMED_NAS, OC_MODIFY_VALUE, OC_REMOVE_VALUE, OC_RESERVED, OC_RESOLUTION, OC_RESPONSE_TO_CHALLENGE, OC_RETRIEVE_TXN_LOG, OC_SESSION_EXCHANGEKEY, OC_SESSION_SETUP, OC_SESSION_TERMINATE, OC_UNHOME_NA, OC_VERIFY_CHALLENGE, opCode, overwriteWhenExists, RC_AUTHEN_ERROR, RC_AUTHEN_TIMEOUT, RC_AUTHENTICATION_FAILED, RC_AUTHENTICATION_NEEDED, RC_ERROR, RC_HANDLE_ALREADY_EXISTS, RC_HANDLE_NOT_FOUND, RC_INSUFFICIENT_PERMISSIONS, RC_INVALID_ADMIN, RC_INVALID_CREDENTIAL, RC_INVALID_HANDLE, RC_INVALID_SESSION_KEY, RC_INVALID_SESSIONSETUP_REQUEST, RC_INVALID_VALUE, RC_NEED_RSAKEY_FOR_SESSIONEXCHANGE, RC_OPERATION_NOT_SUPPORTED, RC_OUT_OF_DATE_SITE_INFO, RC_PREFIX_REFERRAL, RC_PROTOCOL_ERROR, RC_RECURSION_COUNT_TOO_HIGH, RC_RESERVED, RC_SERVER_BACKUP, RC_SERVER_NOT_RESP, RC_SERVER_TOO_BUSY, RC_SERVICE_REFERRAL, RC_SESSION_FAILED, RC_SESSION_MESSAGE_REJECTED, RC_SESSION_TIMEOUT, RC_SUCCESS, RC_VALUE_ALREADY_EXISTS, RC_VALUES_NOT_FOUND, rdHashType, recursionCount, recursive, requestDigest, requestId, responseCode, returnRequestDigest, sessionCounter, sessionId, signature, signerHdl, signerHdlIdx, suggestMajorProtocolVersion, suggestMinorProtocolVersion
 
Constructor Summary
ChallengeAnswerRequest(AbstractRequest req, ChallengeResponse challenge, AuthenticationInfo authInfo)
           
ChallengeAnswerRequest(byte[] authType, byte[] userIdHandle, int userIdIndex, byte[] signedResponse, AuthenticationInfo authInfo)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class net.handle.hdllib.AbstractRequest
clearBuffers, clone, getNamespace, setNamespace, setNamespaceExactly, signMessageForSession
 
Methods inherited from class net.handle.hdllib.AbstractMessage
getEncodedMessage, getEncodedMessageBody, getResponseCodeMessage, hasEqualOrGreaterVersion, hasEqualOrGreaterVersion, setSupportedProtocolVersion, setSupportedProtocolVersion, setSupportedProtocolVersion, shouldEncrypt, signatureIsMac, signMessage, signMessage, takeValuesFrom, verifyMessage, verifyMessage
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

authType

public byte[] authType

userIdHandle

public byte[] userIdHandle

userIdIndex

public int userIdIndex

signedResponse

public byte[] signedResponse

originalRequest

public AbstractRequest originalRequest
Constructor Detail

ChallengeAnswerRequest

public ChallengeAnswerRequest(byte[] authType,
                              byte[] userIdHandle,
                              int userIdIndex,
                              byte[] signedResponse,
                              AuthenticationInfo authInfo)

ChallengeAnswerRequest

public ChallengeAnswerRequest(AbstractRequest req,
                              ChallengeResponse challenge,
                              AuthenticationInfo authInfo)
                       throws HandleException
Throws:
HandleException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class AbstractRequest