public class OCSPTestUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG |
static javax.crypto.KeyGenerator |
desede128kg |
static javax.crypto.KeyGenerator |
desede192kg |
static java.security.KeyPairGenerator |
eckpg |
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 |
---|
OCSPTestUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
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 java.security.cert.X509Certificate |
makeCertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.lang.String _issDN,
java.lang.String algorithm,
boolean _ca) |
static java.security.cert.X509Certificate |
makeCertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.security.cert.X509Certificate _issCert,
boolean _ca) |
static java.security.cert.X509Certificate |
makeCertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.security.cert.X509Certificate _issCert,
org.bouncycastle.asn1.x509.KeyPurposeId keyPurpose) |
static java.security.cert.X509Certificate |
makeCertificateWithOCSP(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.security.cert.X509Certificate _issCert,
boolean _ca,
java.lang.String uri) |
static java.security.cert.X509Certificate |
makeECDSACertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.lang.String _issDN) |
static java.security.cert.X509Certificate |
makeECDSACertificate(java.security.KeyPair _subKP,
java.lang.String _subDN,
java.security.KeyPair _issKP,
java.lang.String _issDN,
boolean _ca) |
static java.security.KeyPair |
makeECKeyPair() |
static java.security.KeyPair |
makeKeyPair() |
static java.security.cert.X509Certificate |
makeRootCertificate(java.security.KeyPair _subKP,
java.lang.String _subDN) |
public static java.security.SecureRandom rand
public static java.security.KeyPairGenerator kpg
public static java.security.KeyPairGenerator eckpg
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 java.security.KeyPair makeKeyPair()
public static java.security.KeyPair makeECKeyPair()
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN) throws java.lang.Exception
java.lang.Exception
public static java.security.cert.X509Certificate makeRootCertificate(java.security.KeyPair _subKP, java.lang.String _subDN) throws java.lang.Exception
java.lang.Exception
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.security.cert.X509Certificate _issCert, boolean _ca) throws java.lang.Exception
java.lang.Exception
public static java.security.cert.X509Certificate makeCertificateWithOCSP(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.security.cert.X509Certificate _issCert, boolean _ca, java.lang.String uri) throws java.lang.Exception
java.lang.Exception
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.security.cert.X509Certificate _issCert, org.bouncycastle.asn1.x509.KeyPurposeId keyPurpose) throws java.lang.Exception
java.lang.Exception
public static java.security.cert.X509Certificate makeECDSACertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN) throws java.lang.Exception
java.lang.Exception
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.lang.Exception
java.lang.Exception
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.lang.Exception
java.lang.Exception
public static java.security.cert.X509Certificate makeECDSACertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN, boolean _ca) throws java.lang.Exception
java.lang.Exception
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.lang.Exception
java.lang.Exception
public static java.security.cert.X509Certificate makeCertificate(java.security.KeyPair _subKP, java.lang.String _subDN, java.security.KeyPair _issKP, java.lang.String _issDN, java.lang.String algorithm, boolean _ca) throws java.lang.Exception
java.lang.Exception