public class CMSTestUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static KeyGenerator |
aes192kg |
static KeyGenerator |
aesKg |
static KeyGenerator |
camelliaKg |
static boolean |
DEBUG |
static KeyGenerator |
desede128kg |
static KeyGenerator |
desede192kg |
static KeyPairGenerator |
dsaKpg |
static KeyPairGenerator |
ecDsaKpg |
static KeyPairGenerator |
ecGostKpg |
static KeyPairGenerator |
gostKpg |
static KeyPairGenerator |
kpg |
static SecureRandom |
rand |
static KeyGenerator |
rc2128kg |
static KeyGenerator |
rc240kg |
static KeyGenerator |
rc264kg |
static KeyGenerator |
seedKg |
static BigInteger |
serialNumber |
| Constructor and Description |
|---|
CMSTestUtil() |
public static SecureRandom rand
public static KeyPairGenerator kpg
public static KeyPairGenerator gostKpg
public static KeyPairGenerator dsaKpg
public static KeyPairGenerator ecGostKpg
public static KeyPairGenerator ecDsaKpg
public static KeyGenerator aes192kg
public static KeyGenerator desede128kg
public static KeyGenerator desede192kg
public static KeyGenerator rc240kg
public static KeyGenerator rc264kg
public static KeyGenerator rc2128kg
public static KeyGenerator aesKg
public static KeyGenerator seedKg
public static KeyGenerator camelliaKg
public static BigInteger serialNumber
public static final boolean DEBUG
public static String dumpBase64(byte[] data)
public static org.bouncycastle.x509.X509AttributeCertificate getAttributeCertificate()
throws Exception
Exceptionpublic static KeyPair makeKeyPair()
public static KeyPair makeGostKeyPair()
public static KeyPair makeDsaKeyPair()
public static KeyPair makeEcDsaKeyPair()
public static KeyPair makeEcGostKeyPair()
public static SecretKey makeDesede128Key()
public static SecretKey makeAES192Key()
public static SecretKey makeDesede192Key()
public static SecretKey makeRC240Key()
public static SecretKey makeRC264Key()
public static SecretKey makeRC2128Key()
public static SecretKey makeSEEDKey()
public static SecretKey makeAESKey(int keySize)
public static SecretKey makeCamelliaKey(int keySize)
public static X509Certificate makeCertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static X509Certificate makeCACertificate(KeyPair _subKP, String _subDN, KeyPair _issKP, String _issDN) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static X509Certificate makeV1Certificate(KeyPair subKP, String _subDN, KeyPair issKP, String _issDN) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static X509Certificate makeCertificate(KeyPair subKP, String _subDN, KeyPair issKP, String _issDN, boolean _ca) throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionpublic static byte[] streamToByteArray(InputStream in) throws IOException
IOExceptionCopyright © 2014. All rights reserved.