|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.handle.hdllib.AbstractMessage
net.handle.hdllib.AbstractResponse
net.handle.hdllib.ChallengeResponse
public class ChallengeResponse
Object used to represent a challenge sent to a user asking for proof of their identity. The challenge includes a nonce (a random unpredictable set of bytes) as well as a digest of the request that is being challenged (so that the user can verify that they are only authorizing a specific operation).
Field Summary | |
---|---|
byte[] |
nonce
|
Fields inherited from class net.handle.hdllib.AbstractResponse |
---|
stream, streaming |
Constructor Summary | |
---|---|
ChallengeResponse(AbstractRequest req)
Construct a challenge to the specified request. |
|
ChallengeResponse(int opCode,
byte[] nonce)
Construct a challenge to the specified request. |
Method Summary | |
---|---|
static void |
initializeRandom()
|
static void |
initializeRandom(byte[] seed)
|
Methods inherited from class net.handle.hdllib.AbstractResponse |
---|
getContinuedResponse, streamResponse |
Methods inherited from class net.handle.hdllib.AbstractMessage |
---|
clearBuffers, decryptMessage, encryptMessage, getEncodedMessage, getEncodedMessageBody, getResponseCodeMessage, hasEqualOrGreaterVersion, signMessage, signMessage, signMessage, takeValuesFrom, toString, verifyMessage, verifyMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public byte[] nonce
Constructor Detail |
---|
public ChallengeResponse(int opCode, byte[] nonce)
public ChallengeResponse(AbstractRequest req) throws HandleException
HandleException
Method Detail |
---|
public static final void initializeRandom()
public static final void initializeRandom(byte[] seed)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |