public abstract class SecureMessagingWrapper extends Object implements Serializable, net.sf.scuba.smartcards.APDUWrapper
Constructor and Description |
---|
SecureMessagingWrapper(int maxTranceiveLength,
boolean shouldCheckMAC)
Creates a secure messaging wrapper.
|
Modifier and Type | Method and Description |
---|---|
abstract SecretKey |
getEncryptionKey()
Gets the shared key for encrypting APDU payloads.
|
abstract SecretKey |
getMACKey()
Get the shared key for computing message authentication codes over APDU payloads.
|
int |
getMaxTranceiveLength()
Returns the maximum tranceive length of wrapped command and response APDUs,
typical values are 256 and 65536.
|
abstract long |
getSendSequenceCounter()
Gets the send sequence counter.
|
boolean |
shouldCheckMAC()
Returns a boolean indicating whether this wrapper will check the MAC in wrapped response APDUs.
|
public SecureMessagingWrapper(int maxTranceiveLength, boolean shouldCheckMAC)
maxTranceiveLength
- Returns the maximum tranceive length of wrapped command and response APDUs, typical values are 256 and 65536shouldCheckMAC
- a boolean indicating whether this wrapper will check the MAC in wrapped response APDUspublic abstract long getSendSequenceCounter()
public abstract SecretKey getEncryptionKey()
public abstract SecretKey getMACKey()
public boolean shouldCheckMAC()
public int getMaxTranceiveLength()
Copyright © 2018. All rights reserved.