Package org.jmrtd
Class BACDeniedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.scuba.smartcards.CardServiceException
-
- org.jmrtd.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 Summary
Constructors Constructor Description BACDeniedException(String msg, BACKeySpec bacKey, int sw)
Creates an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BACKeySpec
getBACKey()
Returns the BAC key that was tried before BAC failed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
BACDeniedException
public BACDeniedException(String msg, BACKeySpec bacKey, int sw)
Creates an exception.- Parameters:
msg
- the messagebacKey
- the BAC entry that was triedsw
- status word or-1
-
-
Method Detail
-
getBACKey
public BACKeySpec getBACKey()
Returns the BAC key that was tried before BAC failed.- Returns:
- a BAC key
-
-