public class CertificateSigningRequest extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CERTIFICATE_DOMAIN |
static String |
COUNTRY |
static String |
DEFAULT_KEY_GENERATION_ALGORITHM |
static int |
DEFAULT_KEY_PAIR_LENGTH |
static String |
DEFAULT_SIGNING_ALGORITHM |
static int |
DEFAULT_VALIDITY |
static String |
LOCALITY |
static int |
MOCK_KEY_SIZE
Generates an 2048 bit RSA key pair using SHA1PRNG for the server certificates.
|
static Date |
NOT_AFTER
The maximum possible value in X.509 specification: 9999-12-31 23:59:59,
new Date(253402300799000L), but Apple iOS 8 fails with a certificate
expiration date grater than Mon, 24 Jan 6084 02:07:59 GMT (issue #6).
|
static Date |
NOT_BEFORE
Current time minus 1 year, just in case software clock goes back due to
time synchronization
|
static String |
ORGANISATION |
static String |
ROOT_COMMON_NAME |
static int |
ROOT_KEY_SIZE
Generates an 2048 bit RSA key pair using SHA1PRNG for the Certificate Authority.
|
static String |
STATE |
Constructor and Description |
---|
CertificateSigningRequest() |
Modifier and Type | Method and Description |
---|---|
CertificateSigningRequest |
addSubjectAlternativeNames(String... subjectAlternativeNames) |
static String |
buildDistinguishedName(String commonName) |
String |
getCommonName() |
String |
getKeyPairAlgorithm() |
int |
getKeyPairSize() |
String |
getSigningAlgorithm() |
List<String> |
getSubjectAlternativeNames() |
Long |
getValidityInMillis() |
CertificateSigningRequest |
setCommonName(String commonName) |
CertificateSigningRequest |
setKeyPairAlgorithm(String keyPairAlgorithm) |
CertificateSigningRequest |
setKeyPairSize(int keyPairSize) |
CertificateSigningRequest |
setSigningAlgorithm(String signingAlgorithm) |
CertificateSigningRequest |
setValidityInMillis(Long validityInMillis) |
public static final String DEFAULT_SIGNING_ALGORITHM
public static final String DEFAULT_KEY_GENERATION_ALGORITHM
public static final int DEFAULT_KEY_PAIR_LENGTH
public static final int DEFAULT_VALIDITY
public static final int ROOT_KEY_SIZE
public static final int MOCK_KEY_SIZE
public static final Date NOT_BEFORE
public static final Date NOT_AFTER
Hundred years in the future from starting the proxy should be enough.
public static final String ROOT_COMMON_NAME
public static final String ORGANISATION
public static final String LOCALITY
public static final String STATE
public static final String COUNTRY
public static final String CERTIFICATE_DOMAIN
public String getCommonName()
public CertificateSigningRequest setCommonName(String commonName)
public int getKeyPairSize()
public CertificateSigningRequest setKeyPairSize(int keyPairSize)
public CertificateSigningRequest addSubjectAlternativeNames(String... subjectAlternativeNames)
public String getSigningAlgorithm()
public CertificateSigningRequest setSigningAlgorithm(String signingAlgorithm)
public String getKeyPairAlgorithm()
public CertificateSigningRequest setKeyPairAlgorithm(String keyPairAlgorithm)
public Long getValidityInMillis()
public CertificateSigningRequest setValidityInMillis(Long validityInMillis)
Copyright © 2020. All rights reserved.