org.neuclear.commons.crypto.signers
Class KeyCache
java.lang.Object
org.neuclear.commons.crypto.signers.KeyCache
public final class KeyCache
- extends java.lang.Object
Keeps a Cache of PrivateKeys. The key to finding the keys in the Cache
is a SHA1 Digest of the alias and the passphrase
|
Constructor Summary |
KeyCache(java.security.KeyStore ks)
|
|
Method Summary |
static java.lang.String |
createHash(java.lang.String alias,
char[] passphrase)
|
java.security.Key |
getKey(java.lang.String alias,
char[] passphrase)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyCache
public KeyCache(java.security.KeyStore ks)
getKey
public final java.security.Key getKey(java.lang.String alias,
char[] passphrase)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.UnrecoverableKeyException,
NonExistingSignerException
- Throws:
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
NonExistingSignerException
createHash
public static final java.lang.String createHash(java.lang.String alias,
char[] passphrase)
Copyright © 2003-2004 Antilles Software Ventures SA. All Rights Reserved.