public class TestCertificatesBeta
Test certificates.
Contains a test certificate chain, the respective private keys and signed data.
Static Fields
BOGUS_CA_CERT
public static final TestCertificates.CertData BOGUS_CA_CERTCA certificate signed with a bogus key.
Issuer: CN=Root Subject: CN=Root
| Field Value | |
|---|---|
| Type | Description |
TestCertificates.CertData |
|
CA_CERT
public static final TestCertificates.CertData CA_CERTTest CA Certificate.
Issuer: CN=Root Subject: CN=Root
| Field Value | |
|---|---|
| Type | Description |
TestCertificates.CertData |
|
CA_KEY
public static final String CA_KEYPrivate key for CA_CERT.
| Field Value | |
|---|---|
| Type | Description |
String |
|
FOO_BAR_COM_CERT
public static final TestCertificates.CertData FOO_BAR_COM_CERTTest leaf certificate.
Issuer: CN=Root Subject: C=US, ST=California, L=Mountain View, O=Google Inc., CN=foo.bar.com
| Field Value | |
|---|---|
| Type | Description |
TestCertificates.CertData |
|
FOO_BAR_COM_KEY
public static final String FOO_BAR_COM_KEYPrivate key for FOO_BAR_COM_CERT.
| Field Value | |
|---|---|
| Type | Description |
String |
|
JWS_SIGNATURE
public static final String JWS_SIGNATUREA test JWS signature.
The signed JSON is the following message:
{"foo":"bar"}
The message is signed using FOO_BAR_COM_KEY.
| Field Value | |
|---|---|
| Type | Description |
String |
|
Static Methods
getJsonWebSignature()
public static JsonWebSignature getJsonWebSignature()| Returns | |
|---|---|
| Type | Description |
JsonWebSignature |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
Constructors
TestCertificates()
public TestCertificates()