org.bouncycastle.cms.test
Class CMSTestUtil
java.lang.Object
|
+--org.bouncycastle.cms.test.CMSTestUtil
- public class CMSTestUtil
- extends java.lang.Object
Method Summary |
static void |
log(java.lang.Exception _ex)
|
static void |
log(java.lang.String _msg)
|
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 SecretKey |
makeDesede128Key()
|
static SecretKey |
makeDesede192Key()
|
static java.security.KeyPair |
makeKeyPair()
|
static SecretKey |
makeRC2128Key()
|
static SecretKey |
makeRC240Key()
|
static SecretKey |
makeRC264Key()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rand
public static java.security.SecureRandom rand
kpg
public static java.security.KeyPairGenerator kpg
desede128kg
public static KeyGenerator desede128kg
desede192kg
public static KeyGenerator desede192kg
rc240kg
public static KeyGenerator rc240kg
rc264kg
public static KeyGenerator rc264kg
rc2128kg
public static KeyGenerator rc2128kg
serialNumber
public static java.math.BigInteger serialNumber
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
CMSTestUtil
public CMSTestUtil()
makeKeyPair
public static java.security.KeyPair makeKeyPair()
makeDesede128Key
public static SecretKey makeDesede128Key()
makeDesede192Key
public static SecretKey makeDesede192Key()
makeRC240Key
public static SecretKey makeRC240Key()
makeRC264Key
public static SecretKey makeRC264Key()
makeRC2128Key
public static SecretKey makeRC2128Key()
makeCertificate
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
makeCACertificate
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
makeCertificate
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
log
public static void log(java.lang.Exception _ex)
log
public static void log(java.lang.String _msg)