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 OpenSSHCertPublicKeyParser
INSTANCE
static java.util.List<java.lang.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 OpenSshCertificate
getRawPublicKey(java.lang.String keyType, Buffer buffer)
-
Methods inherited from class org.apache.sshd.common.util.buffer.keys.AbstractBufferPublicKeyParser
generatePublicKey, getKeyClass, getKeyFactory, getSupportedKeyTypes, isKeyTypeSupported, toString
-
-
-
-
Field Detail
-
KEY_TYPES
public static final java.util.List<java.lang.String> KEY_TYPES
-
INSTANCE
public static final OpenSSHCertPublicKeyParser INSTANCE
-
-
Method Detail
-
getRawPublicKey
public OpenSshCertificate getRawPublicKey(java.lang.String keyType, Buffer buffer) throws java.security.GeneralSecurityException
- Parameters:
keyType
- The key type - e.g., "ssh-rsa", "ssh-dss"buffer
- TheBuffer
containing the encoded raw public key- Returns:
- The decoded
PublicKey
- Throws:
java.security.GeneralSecurityException
- If failed to generate the key
-
-