public class RSABufferPublicKeyParser extends AbstractBufferPublicKeyParser<java.security.interfaces.RSAPublicKey>
Modifier and Type | Field and Description |
---|---|
static RSABufferPublicKeyParser |
INSTANCE |
DEFAULT, EMPTY
Constructor and Description |
---|
RSABufferPublicKeyParser() |
Modifier and Type | Method and Description |
---|---|
java.security.interfaces.RSAPublicKey |
getRawPublicKey(java.lang.String keyType,
Buffer buffer) |
generatePublicKey, getKeyClass, getKeyFactory, getSupportedKeyTypes, isKeyTypeSupported, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
aggregate
public static final RSABufferPublicKeyParser INSTANCE
public java.security.interfaces.RSAPublicKey getRawPublicKey(java.lang.String keyType, Buffer buffer) throws java.security.GeneralSecurityException
keyType
- The key type - e.g., "ssh-rsa", "ssh-dss"buffer
- The Buffer
containing the encoded raw public keyPublicKey
java.security.GeneralSecurityException
- If failed to generate the key