PUB
- Type of PublicKey
being extractedpublic interface BufferPublicKeyParser<PUB extends PublicKey>
Modifier and Type | Interface and Description |
---|---|
static class |
BufferPublicKeyParser.Utils
A helper class for
BufferPublicKeyParser related operations |
Modifier and Type | Field and Description |
---|---|
static BufferPublicKeyParser<PublicKey> |
EMPTY |
Modifier and Type | Method and Description |
---|---|
PUB |
getRawPublicKey(String keyType,
Buffer buffer) |
boolean |
isKeyTypeSupported(String keyType) |
static final BufferPublicKeyParser<PublicKey> EMPTY
boolean isKeyTypeSupported(String keyType)
keyType
- The key type - e.g., "ssh-rsa", "ssh-dss"true
if this key type is supported by the parserPUB 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.