Package org.jmrtd.protocol
Class BACResult
- java.lang.Object
-
- org.jmrtd.protocol.BACResult
-
- All Implemented Interfaces:
Serializable
public class BACResult extends Object implements Serializable
Result of a Basic Access Control protocol run.- Version:
- $Revision: 1781 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BACResult(AccessKeySpec bacKey, SecureMessagingWrapper wrapper)
Creates a BAC result.BACResult(SecureMessagingWrapper wrapper)
Creates a BAC result without specifying the initial access key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AccessKeySpec
getBACKey()
Returns the initial access key ornull
.SecureMessagingWrapper
getWrapper()
Returns the secure messaging wrapper.int
hashCode()
String
toString()
Returns a textual representation of this terminal authentication result.
-
-
-
Constructor Detail
-
BACResult
public BACResult(SecureMessagingWrapper wrapper)
Creates a BAC result without specifying the initial access key.- Parameters:
wrapper
- the secure messaging wrapper that resulted from the BAC protocol run
-
BACResult
public BACResult(AccessKeySpec bacKey, SecureMessagingWrapper wrapper)
Creates a BAC result.- Parameters:
bacKey
- the initial access keywrapper
- the secure messaging wrapper that resulted from the BAC protocol run
-
-
Method Detail
-
getBACKey
public AccessKeySpec getBACKey()
Returns the initial access key ornull
.- Returns:
- the initial access key or
null
-
getWrapper
public SecureMessagingWrapper getWrapper()
Returns the secure messaging wrapper.- Returns:
- the secure messaging wrapper
-
toString
public String toString()
Returns a textual representation of this terminal authentication result.
-
-