Class TestCertificates
java.lang.Object
com.google.api.client.testing.json.webtoken.TestCertificates
Beta
Test certificates.
Contains a test certificate chain, the respective private keys and signed data.
- Since:
- 1.19.1.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Beta
Wrapper for a PEM encoded certificate providing utility routines. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TestCertificates.CertData
CA certificate signed with a bogus key.static final TestCertificates.CertData
Test CA Certificate.static final String
Private key forCA_CERT
.static final TestCertificates.CertData
Test leaf certificate.static final String
Private key forFOO_BAR_COM_CERT
.private static JsonWebSignature
static final String
A test JWS signature. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
-
FOO_BAR_COM_KEY
Private key forFOO_BAR_COM_CERT
.- See Also:
-
CA_CERT
Test CA Certificate.Issuer: CN=Root Subject: CN=Root
-
CA_KEY
Private key forCA_CERT
.- See Also:
-
BOGUS_CA_CERT
CA certificate signed with a bogus key.Issuer: CN=Root Subject: CN=Root
-
JWS_SIGNATURE
A test JWS signature.The signed JSON is the following message:
{"foo":"bar"}
The message is signed using
FOO_BAR_COM_KEY
.- See Also:
-
jsonWebSignature
-
-
Constructor Details
-
TestCertificates
public TestCertificates()
-
-
Method Details
-
getJsonWebSignature
- Throws:
IOException
-