Package org.jmrtd.protocol
Class AAResult
- java.lang.Object
-
- org.jmrtd.protocol.AAResult
-
- All Implemented Interfaces:
Serializable
public class AAResult extends Object implements Serializable
Result from Active Authentication protocol.- Version:
- $Revision: 1763 $
- Author:
- The JMRTD team
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getChallenge()
Returns the challenge that was initially used.String
getDigestAlgorithm()
Returns the digest algorithm used by the ICC.PublicKey
getPublicKey()
Returns the public key for verifying the result.byte[]
getResponse()
Returns the response that was sent back by the ICC.String
getSignatureAlgorithm()
Returns the signature algorithm used by the ICC.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
AAResult
public AAResult(PublicKey publicKey, String digestAlgorithm, String signatureAlgorithm, byte[] challenge, byte[] response)
The result of an Active Authentication protocol run.- Parameters:
publicKey
- the AA public key that was useddigestAlgorithm
- the digest algorithm that was usedsignatureAlgorithm
- the signature algorithm that was usedchallenge
- the challenge that was usedresponse
- the response that resulted
-
-
Method Detail
-
getChallenge
public byte[] getChallenge()
Returns the challenge that was initially used.- Returns:
- the challenge
-
getResponse
public byte[] getResponse()
Returns the response that was sent back by the ICC.- Returns:
- the response that was sent back by the ICC
-
getPublicKey
public PublicKey getPublicKey()
Returns the public key for verifying the result.- Returns:
- the public key for verofying the result
-
getDigestAlgorithm
public String getDigestAlgorithm()
Returns the digest algorithm used by the ICC.- Returns:
- the digest algorithm used by the ICC
-
getSignatureAlgorithm
public String getSignatureAlgorithm()
Returns the signature algorithm used by the ICC.- Returns:
- the signature algorithm used by the ICC
-
-