Class OpenSSHCertPublicKeyParser
- java.lang.Object
-
- org.apache.sshd.common.util.buffer.keys.AbstractBufferPublicKeyParser<OpenSshCertificate>
-
- org.apache.sshd.common.util.buffer.keys.OpenSSHCertPublicKeyParser
-
- All Implemented Interfaces:
BufferPublicKeyParser<OpenSshCertificate>
public class OpenSSHCertPublicKeyParser extends AbstractBufferPublicKeyParser<OpenSshCertificate>
-
-
Field Summary
Fields Modifier and Type Field Description static OpenSSHCertPublicKeyParserINSTANCEstatic List<String>KEY_TYPES-
Fields inherited from interface org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser
DEFAULT, EMPTY
-
-
Constructor Summary
Constructors Constructor Description OpenSSHCertPublicKeyParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenSshCertificategetRawPublicKey(String keyType, Buffer buffer)-
Methods inherited from class org.apache.sshd.common.util.buffer.keys.AbstractBufferPublicKeyParser
generatePublicKey, getKeyClass, getKeyFactory, getSupportedKeyTypes, isKeyTypeSupported, toString
-
-
-
-
Field Detail
-
INSTANCE
public static final OpenSSHCertPublicKeyParser INSTANCE
-
-
Method Detail
-
getRawPublicKey
public OpenSshCertificate getRawPublicKey(String keyType, Buffer buffer) throws GeneralSecurityException
- Parameters:
keyType- The key type - e.g., "ssh-rsa", "ssh-dss"buffer- TheBuffercontaining the encoded raw public key- Returns:
- The decoded
PublicKey - Throws:
GeneralSecurityException- If failed to generate the key
-
-