Class AbstractBufferPublicKeyParser<PUB extends PublicKey>
java.lang.Object
org.apache.sshd.common.util.buffer.keys.AbstractBufferPublicKeyParser<PUB>
- Type Parameters:
PUB- Type ofPublicKeybeing 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
ConstructorsModifierConstructorDescriptionprotectedAbstractBufferPublicKeyParser(Class<PUB> keyClass, String... supported) protectedAbstractBufferPublicKeyParser(Class<PUB> keyClass, Collection<String> supported) -
Method Summary
Modifier and TypeMethodDescriptiongeneratePublicKey(String algorithm, S keySpec) protected KeyFactorygetKeyFactory(String algorithm) booleanisKeyTypeSupported(String keyType) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
isKeyTypeSupportedin interfaceBufferPublicKeyParser<PUB extends PublicKey>- Parameters:
keyType- The key type - e.g., "ssh-rsa", "ssh-dss"- Returns:
trueif 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
-