PUB - Type of PublicKeyPRV - Type of PrivateKeypublic abstract class AbstractKeyEntryResolver<PUB extends PublicKey,PRV extends PrivateKey> extends AbstractLoggingBean implements KeyEntryResolver<PUB,PRV>
log| Modifier | Constructor and Description |
|---|---|
protected |
AbstractKeyEntryResolver(Class<PUB> pubType,
Class<PRV> prvType,
Collection<String> names) |
| Modifier and Type | Method and Description |
|---|---|
PRV |
generatePrivateKey(KeySpec keySpec) |
PUB |
generatePublicKey(KeySpec keySpec) |
Class<PRV> |
getPrivateKeyType() |
Class<PUB> |
getPublicKeyType() |
Collection<String> |
getSupportedTypeNames() |
String |
toString() |
getSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloneKeyPair, clonePrivateKey, clonePublicKey, decodeBigInt, decodeInt, decodeString, decodeString, decodeString, encodeBigInt, encodeInt, encodeString, encodeString, encodeString, generateKeyPair, getKeyFactoryInstance, getKeyPairGenerator, readRLEBytes, writeRLEBytes, writeRLEBytespublic final Class<PUB> getPublicKeyType()
getPublicKeyType in interface KeyEntryResolver<PUB extends PublicKey,PRV extends PrivateKey>Class of the PublicKey that is the result
of decodingpublic final Class<PRV> getPrivateKeyType()
getPrivateKeyType in interface KeyEntryResolver<PUB extends PublicKey,PRV extends PrivateKey>Class of the PrivateKey that matches the
public onepublic Collection<String> getSupportedTypeNames()
getSupportedTypeNames in interface KeyEntryResolver<PUB extends PublicKey,PRV extends PrivateKey>Collection of OpenSSH key type names that
are supported by this decoder - e.g., ECDSA keys have several curve names.
Caveat: this collection may be un-modifiable...public PUB generatePublicKey(KeySpec keySpec) throws GeneralSecurityException
GeneralSecurityExceptionpublic PRV generatePrivateKey(KeySpec keySpec) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.