public class PKey
extends java.lang.Object
| Constructor and Description |
|---|
PKey() |
| Modifier and Type | Method and Description |
|---|---|
static javax.crypto.spec.DHParameterSpec |
readDHParameter(byte[] input) |
static java.security.KeyPair |
readDSAPrivateKey(byte[] input) |
static java.security.PublicKey |
readDSAPublicKey(byte[] input) |
static java.security.KeyPair |
readPrivateKey(byte[] input) |
static java.security.KeyPair |
readPrivateKey(byte[] input,
java.lang.String type) |
static java.security.PublicKey |
readPublicKey(byte[] input) |
static java.security.KeyPair |
readRSAPrivateKey(byte[] input) |
static java.security.PublicKey |
readRSAPublicKey(byte[] input) |
static byte[] |
toDerDHKey(java.math.BigInteger p,
java.math.BigInteger g) |
static byte[] |
toDerDSAKey(java.security.interfaces.DSAPublicKey pubKey,
java.security.interfaces.DSAPrivateKey privKey) |
static byte[] |
toDerRSAKey(java.security.interfaces.RSAPublicKey pubKey,
java.security.interfaces.RSAPrivateCrtKey privKey) |
public static java.security.KeyPair readPrivateKey(byte[] input,
java.lang.String type)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic static java.security.KeyPair readPrivateKey(byte[] input)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic static java.security.PublicKey readPublicKey(byte[] input)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic static java.security.KeyPair readRSAPrivateKey(byte[] input)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic static java.security.PublicKey readRSAPublicKey(byte[] input)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic static java.security.KeyPair readDSAPrivateKey(byte[] input)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic static java.security.PublicKey readDSAPublicKey(byte[] input)
throws java.io.IOException,
java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic static javax.crypto.spec.DHParameterSpec readDHParameter(byte[] input)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] toDerRSAKey(java.security.interfaces.RSAPublicKey pubKey,
java.security.interfaces.RSAPrivateCrtKey privKey)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] toDerDSAKey(java.security.interfaces.DSAPublicKey pubKey,
java.security.interfaces.DSAPrivateKey privKey)
throws java.io.IOException
java.io.IOExceptionpublic static byte[] toDerDHKey(java.math.BigInteger p,
java.math.BigInteger g)
throws java.io.IOException
java.io.IOExceptionCopyright © 2002-2009 JRuby Team. All Rights Reserved.