Package org.jmrtd

Class BACDeniedException

  • All Implemented Interfaces:
    Serializable

    public class BACDeniedException
    extends net.sf.scuba.smartcards.CardServiceException
    Exception for signaling failed BAC.
    Since:
    0.4.8
    Version:
    $Revision: 1761 $
    Author:
    The JMRTD team
    See Also:
    Serialized Form
    • Constructor Detail

      • BACDeniedException

        public BACDeniedException​(String msg,
                                  BACKeySpec bacKey,
                                  int sw)
        Creates an exception.
        Parameters:
        msg - the message
        bacKey - the BAC entry that was tried
        sw - status word or -1
    • Method Detail

      • getBACKey

        public BACKeySpec getBACKey()
        Returns the BAC key that was tried before BAC failed.
        Returns:
        a BAC key