public class OpenSSHCertPublicKeyParser extends AbstractBufferPublicKeyParser<OpenSshCertificate>
Modifier and Type | Field and Description |
---|---|
static OpenSSHCertPublicKeyParser |
INSTANCE |
static java.util.List<java.lang.String> |
KEY_TYPES |
DEFAULT, EMPTY
Constructor and Description |
---|
OpenSSHCertPublicKeyParser() |
Modifier and Type | Method and Description |
---|---|
OpenSshCertificate |
getRawPublicKey(java.lang.String keyType,
Buffer buffer) |
generatePublicKey, getKeyClass, getKeyFactory, getSupportedKeyTypes, isKeyTypeSupported, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
aggregate
public static final java.util.List<java.lang.String> KEY_TYPES
public static final OpenSSHCertPublicKeyParser INSTANCE
public OpenSshCertificate 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 key