public class BACKey extends Object implements BACKeySpec
Modifier | Constructor and Description |
---|---|
protected |
BACKey()
Creates an empty BAC key entry.
|
|
BACKey(String documentNumber,
Date dateOfBirth,
Date dateOfExpiry)
Creates a BAC key.
|
|
BACKey(String documentNumber,
String dateOfBirth,
String dateOfExpiry)
Creates a BAC key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Tests equality of this BAC key with respect to another object.
|
String |
getAlgorithm()
The algorithm of this key specification.
|
String |
getDateOfBirth()
Gets the date of birth string.
|
String |
getDateOfExpiry()
Gets the date of expiry string.
|
String |
getDocumentNumber()
Gets the document number string.
|
byte[] |
getEncoded() |
String |
getFormat() |
int |
hashCode()
Gets the hash code of this BAC key.
|
protected void |
setDateOfBirth(String dateOfBirth) |
protected void |
setDateOfExpiry(String dateOfExpiry) |
protected void |
setDocumentNumber(String documentNumber) |
String |
toString()
Gets a textual representation of this BAC key.
|
protected BACKey()
public BACKey(String documentNumber, String dateOfBirth, String dateOfExpiry)
documentNumber
- the document number string, cannot be null
dateOfBirth
- the date of birth string in yymmdd format, cannot be null
dateOfExpiry
- the date of expiry string in yymmdd format, cannot be null
public String getDocumentNumber()
getDocumentNumber
in interface BACKeySpec
public String getDateOfBirth()
getDateOfBirth
in interface BACKeySpec
public String getDateOfExpiry()
getDateOfExpiry
in interface BACKeySpec
public String toString()
public int hashCode()
public boolean equals(Object o)
public String getAlgorithm()
public byte[] getEncoded()
public String getFormat()
protected void setDocumentNumber(String documentNumber)
protected void setDateOfBirth(String dateOfBirth)
protected void setDateOfExpiry(String dateOfExpiry)
Copyright © 2016. All rights reserved.