public class RSABufferPublicKeyParser extends AbstractBufferPublicKeyParser<RSAPublicKey>
BufferPublicKeyParser.Utils
Modifier and Type | Field and Description |
---|---|
static RSABufferPublicKeyParser |
INSTANCE |
EMPTY
Constructor and Description |
---|
RSABufferPublicKeyParser() |
Modifier and Type | Method and Description |
---|---|
RSAPublicKey |
getRawPublicKey(String keyType,
Buffer buffer) |
generatePublicKey, getKeyClass, getKeyFactory, getSupportedKeyTypes, isKeyTypeSupported, toString
public static final RSABufferPublicKeyParser INSTANCE
public RSAPublicKey getRawPublicKey(String keyType, Buffer buffer) throws GeneralSecurityException
keyType
- The key type - e.g., "ssh-rsa", "ssh-dss"buffer
- The Buffer
containing the encoded raw public keyPublicKey
GeneralSecurityException
- If failed to generate the keyCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.