Package org.jmrtd.protocol
Class AAProtocol
- java.lang.Object
-
- org.jmrtd.protocol.AAProtocol
-
public class AAProtocol extends Object
The Active Authentication protocol.- Since:
- 0.5.6
- Version:
- $Revision: 1779 $
- Author:
- The JMRTD team ([email protected])
-
-
Constructor Summary
Constructors Constructor Description AAProtocol(APDULevelAACapable service, SecureMessagingWrapper wrapper)
Creates a protocol instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AAResult
doAA(PublicKey publicKey, String digestAlgorithm, String signatureAlgorithm, byte[] challenge)
Performs the Active Authentication protocol.
-
-
-
Constructor Detail
-
AAProtocol
public AAProtocol(APDULevelAACapable service, SecureMessagingWrapper wrapper)
Creates a protocol instance.- Parameters:
service
- the service for APDU communicationwrapper
- the secure messaging wrapper
-
-
Method Detail
-
doAA
public AAResult doAA(PublicKey publicKey, String digestAlgorithm, String signatureAlgorithm, byte[] challenge) throws net.sf.scuba.smartcards.CardServiceException
Performs the Active Authentication protocol.- Parameters:
publicKey
- the public key to use (usually read from the card)digestAlgorithm
- the digest algorithm to use, or nullsignatureAlgorithm
- signature algorithmchallenge
- challenge- Returns:
- a boolean indicating whether the card was authenticated
- Throws:
net.sf.scuba.smartcards.CardServiceException
- on error
-
-