Class AAAPDUSender

  • All Implemented Interfaces:
    APDULevelAACapable

    public class AAAPDUSender
    extends Object
    implements APDULevelAACapable
    A low-level APDU sender to support the Active Authentication protocol.
    Since:
    0.7.0
    Version:
    $Revision: 1805 $
    Author:
    The JMRTD team
    • Constructor Detail

      • AAAPDUSender

        public AAAPDUSender​(net.sf.scuba.smartcards.CardService service)
        Creates an APDU sender for tranceiving Active Authentication protocol APDUs.
        Parameters:
        service - the card service for tranceiving APDUs
    • Method Detail

      • sendInternalAuthenticate

        public byte[] sendInternalAuthenticate​(net.sf.scuba.smartcards.APDUWrapper wrapper,
                                               byte[] rndIFD)
                                        throws net.sf.scuba.smartcards.CardServiceException
        Sends an INTERNAL AUTHENTICATE command to the passport. This is part of AA.
        Specified by:
        sendInternalAuthenticate in interface APDULevelAACapable
        Parameters:
        wrapper - secure messaging wrapper
        rndIFD - the challenge to send
        Returns:
        the response from the passport (status word removed)
        Throws:
        net.sf.scuba.smartcards.CardServiceException - on tranceive error