PkgAgentSystem.Crypto
Class IAIKSecurityStore
java.lang.Object
|
+--PkgAgentSystem.Crypto.PersonalSecurityStore
|
+--PkgAgentSystem.Crypto.IAIKSecurityStore
- public class IAIKSecurityStore
- extends PersonalSecurityStore
A subclass of PersonalSecurityStore
which can be used if the
cryptography provider used is IAIK. The only addition is, that it can create
a new store (i. e. create a server certificate).
This is awkward but necessary, as the standard framework does not support
creating certificates. So each cryptography provider has its own classes
for this, which requires a new class.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
PersonalSecurityStoreFactory
Constructor Summary |
protected |
IAIKSecurityStore()
Creates a new and empty security store. |
protected |
IAIKSecurityStore(String filename,
char[] password)
Creates a new security store by reading the content from a file protected with a certain password. |
Method Summary |
protected void |
createStore()
Creates all the necessary keys, certificates, ... for basic work of the agent system.
|
Methods inherited from class PkgAgentSystem.Crypto.PersonalSecurityStore |
addAgentPrivateKeyAndIdentity,
addKeyPair,
addOwnerPrivateKeyAndCertificate,
addTrustedCertificate,
deleteAgentIdentity,
deleteKeyPair,
deleteOwner,
deleteTrustedCertificate,
getAgentIdentityNames,
getAgentPrivateKeyAndIdentity,
getKeyPair,
getKeyPairNames,
getOwnerCertificateNames,
getOwnerPrivateKeyAndCertificate,
getTrustedCertificate,
getTrustedCertificateNames,
writePersonalSecurityStore |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
IAIKSecurityStore
protected IAIKSecurityStore(String filename,
char[] password)
throws FileNotFoundException,
KeyStoreException
- Creates a new security store by reading the content from a file protected with a certain password.
- Parameters:
filename
- the name of the file containing the storepassword
- the password used for encrypting the store- Throws:
- FileNotFoundException - if the specified file could not be found
- KeyStoreException - if another error occured (algorithm not available, wrong password, ...)
IAIKSecurityStore
protected IAIKSecurityStore()
- Creates a new and empty security store.
createStore
protected void createStore()
throws KeyStoreException
- Creates all the necessary keys, certificates, ... for basic work of the agent system.
At the moment only the certificate of the system (RSA) and the according key is generated
(stored under "Server Certificate" in the owner store).
Should be used only for testing.
- Throws:
- KeyStoreException - if an error occured (algorithm not available, invalid key, certificate problem)
- Overrides:
- createStore in class PersonalSecurityStore
Submit a bug
Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.