Class TestCertificates (1.45.3)

public class TestCertificates

Beta
Test certificates.

Contains a test certificate chain, the respective private keys and signed data.

Inheritance

java.lang.Object > TestCertificates

Static Fields

BOGUS_CA_CERT

public static final TestCertificates.CertData BOGUS_CA_CERT

CA 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_CERT

Test CA Certificate.

Issuer: CN=Root Subject: CN=Root

Field Value
Type Description
TestCertificates.CertData

CA_KEY

public static final String CA_KEY

Private key for CA_CERT.

Field Value
Type Description
String

FOO_BAR_COM_CERT

public static final TestCertificates.CertData FOO_BAR_COM_CERT

Test 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_KEY

Private key for FOO_BAR_COM_CERT.

Field Value
Type Description
String

JWS_SIGNATURE

public static final String JWS_SIGNATURE

A 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()