Bouncy Castle Cryptography Library 1.79

org.bouncycastle.jcajce.spec
Class OpenSSHPublicKeySpec

java.lang.Object
  |
  +--java.security.spec.EncodedKeySpec
        |
        +--org.bouncycastle.jcajce.spec.OpenSSHPublicKeySpec
All Implemented Interfaces:
java.security.spec.KeySpec

public class OpenSSHPublicKeySpec
extends java.security.spec.EncodedKeySpec

Holds an OpenSSH encoded public key.


Constructor Summary
OpenSSHPublicKeySpec(byte[] encodedKey)
          Construct and instance and determine the OpenSSH public key type.
 
Method Summary
 java.lang.String getFormat()
           
 java.lang.String getType()
          The type of OpenSSH public key.
 
Methods inherited from class java.security.spec.EncodedKeySpec
getEncoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenSSHPublicKeySpec

public OpenSSHPublicKeySpec(byte[] encodedKey)
Construct and instance and determine the OpenSSH public key type. The current types are ssh-rsa, ssh-ed25519, ssh-dss and ecdsa-*

It does not validate the key beyond identifying the type.

Parameters:
encodedKey -  
Method Detail

getFormat

public java.lang.String getFormat()
Overrides:
getFormat in class java.security.spec.EncodedKeySpec

getType

public java.lang.String getType()
The type of OpenSSH public key.
Returns:
the type.

Bouncy Castle Cryptography Library 1.79