Package org.jmrtd

Class AccessDeniedException

  • All Implemented Interfaces:
    Serializable

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

      • AccessDeniedException

        public AccessDeniedException​(String msg,
                                     int sw)
        Creates an exception.
        Parameters:
        msg - the message
        sw - status word or -1
      • AccessDeniedException

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

      • getAccessKey

        public AccessKeySpec getAccessKey()
        Returns the BAC key that was tried before BAC failed.
        Returns:
        a BAC key