Class AAProtocol


  • public class AAProtocol
    extends Object
    The Active Authentication protocol.
    Since:
    0.5.6
    Version:
    $Revision: 1779 $
    Author:
    The JMRTD team ([email protected])
    • Constructor Detail

      • AAProtocol

        public AAProtocol​(APDULevelAACapable service,
                          SecureMessagingWrapper wrapper)
        Creates a protocol instance.
        Parameters:
        service - the service for APDU communication
        wrapper - 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 null
        signatureAlgorithm - signature algorithm
        challenge - challenge
        Returns:
        a boolean indicating whether the card was authenticated
        Throws:
        net.sf.scuba.smartcards.CardServiceException - on error