PUB - Type of PublicKey being extractedpublic abstract class AbstractBufferPublicKeyParser<PUB extends PublicKey> extends Object implements BufferPublicKeyParser<PUB>
DEFAULT, EMPTY| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBufferPublicKeyParser(Class<PUB> keyClass,
Collection<String> supported) |
protected |
AbstractBufferPublicKeyParser(Class<PUB> keyClass,
String... supported) |
| Modifier and Type | Method and Description |
|---|---|
protected <S extends KeySpec> |
generatePublicKey(String algorithm,
S keySpec) |
Class<PUB> |
getKeyClass() |
protected KeyFactory |
getKeyFactory(String algorithm) |
Collection<String> |
getSupportedKeyTypes() |
boolean |
isKeyTypeSupported(String keyType) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaggregate, getRawPublicKeyprotected AbstractBufferPublicKeyParser(Class<PUB> keyClass, String... supported)
protected AbstractBufferPublicKeyParser(Class<PUB> keyClass, Collection<String> supported)
public Collection<String> getSupportedKeyTypes()
public boolean isKeyTypeSupported(String keyType)
isKeyTypeSupported in interface BufferPublicKeyParser<PUB extends PublicKey>keyType - The key type - e.g., "ssh-rsa", "ssh-dss"true if this key type is supported by the parserprotected <S extends KeySpec> PUB generatePublicKey(String algorithm, S keySpec) throws GeneralSecurityException
GeneralSecurityExceptionprotected KeyFactory getKeyFactory(String algorithm) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.