public interface SoftCapSettings extends CapSettings
Modifier and Type | Method and Description |
---|---|
void |
setCdol(byte[] cdol)
Set the Card risk management Data Object List 1 (CDOL).
|
void |
setCid(byte cid)
Set the Cryptographic Identifier (CID).
|
void |
setIad(byte[] iad)
Set the Issuer Application Data.
|
void |
setIaf(byte iaf)
Sets the Issuer Authentication Flags.
|
void |
setIpb(byte[] ipb)
Set the Issuer Proprietary Bitmap (IPB).
|
void |
setMacPadding(byte[] padding)
Set the padding used when computing a CAP MAC.
|
void setMacPadding(byte[] padding)
padding
- The byte array to use for padding.
Default value
new byte[]{(byte) 0x80, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00};
void setCdol(byte[] cdol)
cdol
- The CDOL byte array.
Default value
new byte[]{(byte) 0x9f, (byte) 0x02,
(byte) 0x06, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x9f,
(byte) 0x03, (byte) 0x06, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x9f, (byte) 0x1a, (byte) 0x02, (byte) 0x00,
(byte) 0x00, (byte) 0x95, (byte) 0x05, (byte) 0x80,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x5f, (byte) 0x2a, (byte) 0x02, (byte) 0x00,
(byte) 0x00, (byte) 0x9a, (byte) 0x03, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x9c, (byte) 0x01,
(byte) 0x00, (byte) 0x9f, (byte) 0x37, (byte) 0x04,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x82, (byte) 0x02, (byte) 0x10, (byte) 0x00,
(byte) 0x9f, (byte) 0x36, (byte) 0x02, (byte) 0x00,
(byte) 0x00, (byte) 0x9f, (byte) 0x52, (byte) 0x06,
(byte) 0xa5, (byte) 0x00, (byte) 0x03, (byte) 0x04,
(byte) 0x00, (byte) 0x00};
void setIpb(byte[] ipb)
ipb
- The IPB byte array.
Default value
new byte[]{(byte) 0x00, (byte) 0x00,
(byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00,};
void setIaf(byte iaf)
The bits listed have the following meaning if set:
iaf
- The IAF byte.
Default value (byte) 0x80);
IllegalArgumentException
- when bit 6 is set and bit 8 is not set
(invalid CAP bit flag setting).void setIad(byte[] iad)
iad
- The IAD byte array.
Default value
new byte[]{
(byte) 0x06, (byte) 0x01, (byte) 0x0a, (byte) 0x03,
(byte) 0x04, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x00};
void setCid(byte cid)
cid
- The CID byte.
Default value (byte) 0x80);