public class TSPTestUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
static javax.crypto.KeyGenerator |
desede128kg |
static javax.crypto.KeyGenerator |
desede192kg |
static org.bouncycastle.asn1.ASN1ObjectIdentifier |
EuroPKI_TSA_Test_Policy |
static JcaX509ExtensionUtils |
extUtils |
static java.security.KeyPairGenerator |
kpg |
static java.security.SecureRandom |
rand |
static javax.crypto.KeyGenerator |
rc2128kg |
static javax.crypto.KeyGenerator |
rc240kg |
static javax.crypto.KeyGenerator |
rc264kg |
static java.math.BigInteger |
serialNumber |
Constructor and Description |
---|
TSPTestUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
dumpBase64(byte[] data) |
static java.security.cert.X509Certificate |
makeCACertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.lang.String _issDN) |
static java.security.cert.X509Certificate |
makeCertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.lang.String _issDN) |
static java.security.cert.X509Certificate |
makeCertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.lang.String _issDN,
boolean _ca) |
static javax.crypto.SecretKey |
makeDesede128Key() |
static javax.crypto.SecretKey |
makeDesede192Key() |
static java.security.KeyPair |
makeKeyPair() |
static javax.crypto.SecretKey |
makeRC2128Key() |
static javax.crypto.SecretKey |
makeRC240Key() |
static javax.crypto.SecretKey |
makeRC264Key() |
public static java.security.SecureRandom rand
public static java.security.KeyPairGenerator kpg
public static javax.crypto.KeyGenerator desede128kg
public static javax.crypto.KeyGenerator desede192kg
public static javax.crypto.KeyGenerator rc240kg
public static javax.crypto.KeyGenerator rc264kg
public static javax.crypto.KeyGenerator rc2128kg
public static java.math.BigInteger serialNumber
public static final boolean DEBUG
public static org.bouncycastle.asn1.ASN1ObjectIdentifier EuroPKI_TSA_Test_Policy
public static JcaX509ExtensionUtils extUtils
public static java.lang.String dumpBase64(byte[] data)
public static java.security.KeyPair makeKeyPair()
public static javax.crypto.SecretKey makeDesede128Key()
public static javax.crypto.SecretKey makeDesede192Key()
public static javax.crypto.SecretKey makeRC240Key()
public static javax.crypto.SecretKey makeRC264Key()
public static javax.crypto.SecretKey makeRC2128Key()
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException
public static java.security.cert.X509Certificate makeCACertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN, boolean _ca) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException