Class AbstractBufferPublicKeyParser<PUB extends PublicKey>
java.lang.Object
org.apache.sshd.common.util.buffer.keys.AbstractBufferPublicKeyParser<PUB>
- Type Parameters:
PUB
- Type ofPublicKey
being extracted
- All Implemented Interfaces:
BufferPublicKeyParser<PUB>
- Direct Known Subclasses:
DSSBufferPublicKeyParser
,ECBufferPublicKeyParser
,ED25519BufferPublicKeyParser
,OpenSSHCertPublicKeyParser
,RSABufferPublicKeyParser
,SkECBufferPublicKeyParser
,SkED25519BufferPublicKeyParser
public abstract class AbstractBufferPublicKeyParser<PUB extends PublicKey>
extends Object
implements BufferPublicKeyParser<PUB>
-
Field Summary
FieldsFields inherited from interface org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser
DEFAULT, EMPTY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractBufferPublicKeyParser
(Class<PUB> keyClass, String... supported) protected
AbstractBufferPublicKeyParser
(Class<PUB> keyClass, Collection<String> supported) -
Method Summary
Modifier and TypeMethodDescriptiongeneratePublicKey
(String algorithm, S keySpec) protected KeyFactory
getKeyFactory
(String algorithm) boolean
isKeyTypeSupported
(String keyType) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser
getRawPublicKey
-
Field Details
-
keyClass
-
supported
-
-
Constructor Details
-
AbstractBufferPublicKeyParser
-
AbstractBufferPublicKeyParser
-
-
Method Details
-
getSupportedKeyTypes
-
getKeyClass
-
isKeyTypeSupported
- Specified by:
isKeyTypeSupported
in interfaceBufferPublicKeyParser<PUB extends PublicKey>
- Parameters:
keyType
- The key type - e.g., "ssh-rsa", "ssh-dss"- Returns:
true
if this key type is supported by the parser
-
generatePublicKey
protected <S extends KeySpec> PUB generatePublicKey(String algorithm, S keySpec) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
getKeyFactory
- Throws:
GeneralSecurityException
-
toString
-