Package org.jmrtd
Class AccessDeniedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- net.sf.scuba.smartcards.CardServiceException
-
- org.jmrtd.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 Summary
Constructors Constructor Description AccessDeniedException(String msg, int sw)
Creates an exception.AccessDeniedException(String msg, AccessKeySpec bacKey, int sw)
Creates an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessKeySpec
getAccessKey()
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
-
AccessDeniedException
public AccessDeniedException(String msg, int sw)
Creates an exception.- Parameters:
msg
- the messagesw
- status word or-1
-
AccessDeniedException
public AccessDeniedException(String msg, AccessKeySpec bacKey, int sw)
Creates an exception.- Parameters:
msg
- the messagebacKey
- the BAC entry that was tried, ornull
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
-
-