public class PublicKeyAuthenticationInfo extends AuthenticationInfo
Constructor | Description |
---|---|
PublicKeyAuthenticationInfo(byte[] userIdHandle,
int userIdIndex,
java.security.PrivateKey privateKey) |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
authenticate(ChallengeResponse challenge,
AbstractRequest request) |
Sign the given nonce and requestDigest given as a challenge to the
given request.
|
boolean |
equals(java.lang.Object obj) |
|
byte[] |
getAuthType() |
Get the identifier for the type of authentication performed.
|
java.security.PrivateKey |
getPrivateKey() |
Return the byte-encoded representation of the secret key.
|
byte[] |
getUserIdHandle() |
Get the handle that identifies the user that is
represented by this authentication object.
|
int |
getUserIdIndex() |
Get the index of the handle value that identifies this user.
|
int |
hashCode() |
|
java.lang.String |
toString() |
getUserValueReference
public PublicKeyAuthenticationInfo(byte[] userIdHandle, int userIdIndex, java.security.PrivateKey privateKey)
public byte[] getAuthType()
getAuthType
in class AuthenticationInfo
public byte[] authenticate(ChallengeResponse challenge, AbstractRequest request) throws HandleException
authenticate
in class AuthenticationInfo
HandleException
public byte[] getUserIdHandle()
getUserIdHandle
in class AuthenticationInfo
public int getUserIdIndex()
getUserIdIndex
in class AuthenticationInfo
public java.security.PrivateKey getPrivateKey()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object