PUB
- Type of PublicKey
being extractedpublic interface BufferPublicKeyParser<PUB extends PublicKey>
Modifier and Type | Field and Description |
---|---|
static BufferPublicKeyParser<PublicKey> |
DEFAULT |
static BufferPublicKeyParser<PublicKey> |
EMPTY |
Modifier and Type | Method and Description |
---|---|
static BufferPublicKeyParser<PublicKey> |
aggregate(Collection<? extends BufferPublicKeyParser<? extends PublicKey>> parsers) |
PUB |
getRawPublicKey(String keyType,
Buffer buffer) |
boolean |
isKeyTypeSupported(String keyType) |
static final BufferPublicKeyParser<PublicKey> EMPTY
static final BufferPublicKeyParser<PublicKey> DEFAULT
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 keystatic BufferPublicKeyParser<PublicKey> aggregate(Collection<? extends BufferPublicKeyParser<? extends PublicKey>> parsers)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.