public interface ISymmetricKey extends IPublicKey, IPrivateKey
Modifier and Type | Field and Description |
---|---|
static long |
TIMESTAMP_MANUAL
The time stamp for manually distributed session keys.
|
static long |
TIMESTAMP_MISSING
The time stamp that signals missing session keys.
|
Modifier and Type | Method and Description |
---|---|
boolean |
forEncryption()
If this symmetric key can be used for encryption, this method will return true.
|
boolean |
forSigning()
If this symmetric key can be used to create signatures, this method will return true.
|
SystemID |
getCorrespondingSystemID() |
byte[] |
getKey()
Get the key as a byte array.
|
long |
getTimestamp()
Returns the time stamp of a symmetric key or TIMESTAMP_MISSING,
if there is no entry for the key.
|
encryptMessage, equals, verifySignature
createSignature, decryptMessage, equals
static final long TIMESTAMP_MANUAL
static final long TIMESTAMP_MISSING
SystemID getCorrespondingSystemID()
boolean forEncryption()
boolean forSigning()
long getTimestamp()
byte[] getKey()