PUB
- Type of PublicKey
being extractedpublic abstract class AbstractBufferPublicKeyParser<PUB extends PublicKey> extends Object implements BufferPublicKeyParser<PUB>
BufferPublicKeyParser.Utils
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, wait
getRawPublicKey
protected 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
GeneralSecurityException
protected KeyFactory getKeyFactory(String algorithm) throws GeneralSecurityException
GeneralSecurityException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.