Class RSABufferPublicKeyParser
- java.lang.Object
-
- org.apache.sshd.common.util.buffer.keys.AbstractBufferPublicKeyParser<java.security.interfaces.RSAPublicKey>
-
- org.apache.sshd.common.util.buffer.keys.RSABufferPublicKeyParser
-
- All Implemented Interfaces:
BufferPublicKeyParser<java.security.interfaces.RSAPublicKey>
public class RSABufferPublicKeyParser extends AbstractBufferPublicKeyParser<java.security.interfaces.RSAPublicKey>
-
-
Field Summary
Fields Modifier and Type Field Description static RSABufferPublicKeyParser
INSTANCE
-
Fields inherited from interface org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser
DEFAULT, EMPTY
-
-
Constructor Summary
Constructors Constructor Description RSABufferPublicKeyParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.interfaces.RSAPublicKey
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
-
INSTANCE
public static final RSABufferPublicKeyParser INSTANCE
-
-
Method Detail
-
getRawPublicKey
public java.security.interfaces.RSAPublicKey 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
-
-