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.IOException
java.security.GeneralSecurityException
public static java.security.KeyPair readPrivateKey(byte[] input) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public static java.security.PublicKey readPublicKey(byte[] input) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public static java.security.KeyPair readRSAPrivateKey(byte[] input) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public static java.security.PublicKey readRSAPublicKey(byte[] input) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public static java.security.KeyPair readDSAPrivateKey(byte[] input) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public static java.security.PublicKey readDSAPublicKey(byte[] input) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOException
java.security.GeneralSecurityException
public static javax.crypto.spec.DHParameterSpec readDHParameter(byte[] input) throws java.io.IOException
java.io.IOException
public static byte[] toDerRSAKey(java.security.interfaces.RSAPublicKey pubKey, java.security.interfaces.RSAPrivateCrtKey privKey) throws java.io.IOException
java.io.IOException
public static byte[] toDerDSAKey(java.security.interfaces.DSAPublicKey pubKey, java.security.interfaces.DSAPrivateKey privKey) throws java.io.IOException
java.io.IOException
public static byte[] toDerDHKey(java.math.BigInteger p, java.math.BigInteger g) throws java.io.IOException
java.io.IOException
Copyright © 2002-2009 JRuby Team. All Rights Reserved.