public interface IKeyStore
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCertificate(ICertificate cert)
Adds a certificate to the store.
|
void |
addKey(SystemID system,
ISymmetricKey hmacSymmetricKey,
ISymmetricKey aesSymmetricKey,
long time)
Adds a session key to the key store.
|
boolean |
createKey(SystemID system)
Creates a new session key for the specified system.
|
boolean |
existCertificate(ICertificate cert)
Checks if the certificate already is contained in the key store.
|
ICertificate |
getCertificate(java.lang.String subject)
Returns the certificate that has been issued to the specified
subject or null if there is none.
|
ICertificate |
getCertificate(SystemID id)
Returns the certificate that has the specified system id.
|
ISymmetricKey |
getEncryptionKey(SystemID system)
Returns the encryption key for the specified system or null
if there is none.
|
ICertificate |
getOwnCertificate() |
ISymmetricKey |
getSignatureKey(SystemID system)
Returns the signature key for the specified system or null
if there is none.
|
boolean |
removeCertificate(ICertificate cert)
Removes the specified certificate from the store.
|
boolean |
removeKey(SystemID system)
Removes the session key for the specified system from the store.
|
ICertificate getOwnCertificate()
boolean existCertificate(ICertificate cert)
cert - The certificate to check for.boolean addCertificate(ICertificate cert)
certificate - The certificate to add.java.lang.IllegalArgumentException - Thrown if the key store contains already
a different certificate for the same subject.boolean removeCertificate(ICertificate cert)
certificate - The certificate that shall be removed.ICertificate getCertificate(SystemID id)
systemID - The system id of the certificate.ICertificate getCertificate(java.lang.String subject)
subject - The subject to lookup.void addKey(SystemID system, ISymmetricKey hmacSymmetricKey, ISymmetricKey aesSymmetricKey, long time)
system - The system id of the system that shares the key.signature - The signature key.encryption - The encryption key.timestamp - The time stamp of the key, use ISymmetricKey.TIMESTAMP_MANUAL for manual created, long persistence keys.ISymmetricKey getSignatureKey(SystemID system)
system - The system to search for.ISymmetricKey getEncryptionKey(SystemID system)
system - The system to search for.boolean createKey(SystemID system)
system - The system with which a key should be
established.boolean removeKey(SystemID system)
system - The system to remove.