PUB
- Type of PublicKey
being extractedpublic interface BufferPublicKeyParser<PUB extends java.security.PublicKey>
PublicKey
from a Buffer
Modifier and Type | Field and Description |
---|---|
static BufferPublicKeyParser<java.security.PublicKey> |
DEFAULT |
static BufferPublicKeyParser<java.security.PublicKey> |
EMPTY |
Modifier and Type | Method and Description |
---|---|
static BufferPublicKeyParser<java.security.PublicKey> |
aggregate(java.util.Collection<? extends BufferPublicKeyParser<? extends java.security.PublicKey>> parsers) |
PUB |
getRawPublicKey(java.lang.String keyType,
Buffer buffer) |
boolean |
isKeyTypeSupported(java.lang.String keyType) |
static final BufferPublicKeyParser<java.security.PublicKey> EMPTY
static final BufferPublicKeyParser<java.security.PublicKey> DEFAULT
boolean isKeyTypeSupported(java.lang.String keyType)
keyType
- The key type - e.g., "ssh-rsa", "ssh-dss"true
if this key type is supported by the parserPUB 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 keystatic BufferPublicKeyParser<java.security.PublicKey> aggregate(java.util.Collection<? extends BufferPublicKeyParser<? extends java.security.PublicKey>> parsers)