Top Fields Constructors Methods
org.apache.sshd.common.util.buffer.keys

public abstract Class AbstractBufferPublicKeyParser<PUB extends PublicKey>

extends Object
implements BufferPublicKeyParser<PUB extends PublicKey>
Class Inheritance
All Implemented Interfaces
org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser
Known Direct Subclasses
org.apache.sshd.common.util.buffer.keys.DSSBufferPublicKeyParser, org.apache.sshd.common.util.buffer.keys.ECBufferPublicKeyParser, org.apache.sshd.common.util.buffer.keys.ED25519BufferPublicKeyParser, org.apache.sshd.common.util.buffer.keys.OpenSSHCertPublicKeyParser, org.apache.sshd.common.util.buffer.keys.RSABufferPublicKeyParser, org.apache.sshd.common.util.buffer.keys.SkECBufferPublicKeyParser, org.apache.sshd.common.util.buffer.keys.SkED25519BufferPublicKeyParser
Type Parameters
<PUB>
Type of PublicKey being extracted
Imports
java.security.GeneralSecurityException, .KeyFactory, .PublicKey, java.security.spec.InvalidKeySpecException, .KeySpec, java.util.Arrays, .Collection, .Collections, .Objects, org.apache.sshd.common.util.GenericUtils, .ValidateUtils, org.apache.sshd.common.util.security.SecurityUtils

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final Class<PUB>
private final Collection<String>

Constructor Summary

AccessConstructor and Description
protected
AbstractBufferPublicKeyParser(Class<PUB> keyClass, String... supported)

protected

Method Summary

Modifier and TypeMethod and Description
protected <S extends KeySpec> PUB
generatePublicKey(String algorithm, S keySpec)

public final Class<PUB>
protected KeyFactory
getKeyFactory(String algorithm)

public Collection<String>
public boolean
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

keyClassback to summary
private final Class<PUB> keyClass
supportedback to summary
private final Collection<String> supported

Constructor Detail

AbstractBufferPublicKeyParserback to summary
protected AbstractBufferPublicKeyParser(Class<PUB> keyClass, String... supported)
AbstractBufferPublicKeyParserback to summary
protected AbstractBufferPublicKeyParser(Class<PUB> keyClass, Collection<String> supported)

Method Detail

generatePublicKeyback to summary
protected <S extends KeySpec> PUB generatePublicKey(String algorithm, S keySpec) throws GeneralSecurityException
getKeyClassback to summary
public final Class<PUB> getKeyClass()
getKeyFactoryback to summary
protected KeyFactory getKeyFactory(String algorithm) throws GeneralSecurityException
getSupportedKeyTypesback to summary
public Collection<String> getSupportedKeyTypes()
isKeyTypeSupportedback to summary
public boolean isKeyTypeSupported(String keyType)

Implements org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser.isKeyTypeSupported.

Parameters
keyType:String

Doc from org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser.isKeyTypeSupported.

The key type - e.g., "ssh-rsa", "ssh-dss"

Returns:boolean

Doc from org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser.isKeyTypeSupported.

true if this key type is supported by the parser

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override