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
@Deprecated public class AccessDeniedException extends net.sf.scuba.smartcards.CardServiceException
Deprecated.UseCardServiceProtocolException
instead.Exception for signaling failed BAC.- Since:
- 0.7.0
- Version:
- $Revision: 1851 $
- Author:
- The JMRTD team
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AccessDeniedException(String msg, int sw)
Deprecated.Creates an exception.AccessDeniedException(String msg, AccessKeySpec bacKey, int sw)
Deprecated.Creates an exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AccessKeySpec
getAccessKey()
Deprecated.Returns the BAC key that was tried before BAC failed.-
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)
Deprecated.Creates an exception.- Parameters:
msg
- the messagesw
- status word or-1
-
AccessDeniedException
public AccessDeniedException(String msg, AccessKeySpec bacKey, int sw)
Deprecated.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()
Deprecated.Returns the BAC key that was tried before BAC failed.- Returns:
- a BAC key
-
-