|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.util.OpenSSHPublicKeyUtil
OpenSSHPublicKeyUtil utility classes for parsing OpenSSH public keys.
Method Summary | |
static byte[] |
encodePublicKey(AsymmetricKeyParameter cipherParameters)
Encode a public key from an AsymmetricKeyParameter instance. |
static AsymmetricKeyParameter |
parsePublicKey(byte[] encoded)
Parse a public key. |
static AsymmetricKeyParameter |
parsePublicKey(org.bouncycastle.crypto.util.SSHBuffer buffer)
Parse a public key from an SSHBuffer instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static AsymmetricKeyParameter parsePublicKey(byte[] encoded)
This method accepts the bytes that are Base64 encoded in an OpenSSH public key file.
encoded
- The key.
public static byte[] encodePublicKey(AsymmetricKeyParameter cipherParameters) throws java.io.IOException
cipherParameters
- The key to encode.
java.io.IOException
public static AsymmetricKeyParameter parsePublicKey(org.bouncycastle.crypto.util.SSHBuffer buffer)
buffer
- containing the SSH public key.
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |