public class ECBufferPublicKeyParser extends AbstractBufferPublicKeyParser<ECPublicKey>
| Modifier and Type | Field and Description |
|---|---|
static ECBufferPublicKeyParser |
INSTANCE |
DEFAULT, EMPTY| Constructor and Description |
|---|
ECBufferPublicKeyParser() |
| Modifier and Type | Method and Description |
|---|---|
protected ECPublicKey |
getRawECKey(String expectedCurve,
ECParameterSpec spec,
Buffer buffer) |
ECPublicKey |
getRawPublicKey(String keyType,
Buffer buffer) |
generatePublicKey, getKeyClass, getKeyFactory, getSupportedKeyTypes, isKeyTypeSupported, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaggregatepublic static final ECBufferPublicKeyParser INSTANCE
public ECPublicKey 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 keyPublicKeyGeneralSecurityException - If failed to generate the keyprotected ECPublicKey getRawECKey(String expectedCurve, ECParameterSpec spec, Buffer buffer) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.