Modifier and Type | Class and Description |
---|---|
static class |
TestCertificates.CertData
Beta Wrapper for a PEM encoded certificate providing utility routines. |
Modifier and Type | Field and Description |
---|---|
static TestCertificates.CertData |
BOGUS_CA_CERT
CA certificate signed with a bogus key.
|
static TestCertificates.CertData |
CA_CERT
Test CA Certificate.
|
static String |
CA_KEY
Private key for
CA_CERT . |
static TestCertificates.CertData |
FOO_BAR_COM_CERT
Test leaf certificate.
|
static String |
FOO_BAR_COM_KEY
Private key for
FOO_BAR_COM_CERT . |
static String |
JWS_SIGNATURE
A test JWS signature.
|
Constructor and Description |
---|
TestCertificates() |
Modifier and Type | Method and Description |
---|---|
static JsonWebSignature |
getJsonWebSignature() |
public static final TestCertificates.CertData FOO_BAR_COM_CERT
Issuer: CN=Root Subject: C=US, ST=California, L=Mountain View, O=Google Inc., CN=foo.bar.com
public static final String FOO_BAR_COM_KEY
FOO_BAR_COM_CERT
.public static final TestCertificates.CertData CA_CERT
Issuer: CN=Root Subject: CN=Root
public static final String CA_KEY
CA_CERT
.public static final TestCertificates.CertData BOGUS_CA_CERT
Issuer: CN=Root Subject: CN=Root
public static final String JWS_SIGNATURE
The signed JSON is the following message:
{"foo":"bar"}
The message is signed using FOO_BAR_COM_KEY
.
public static JsonWebSignature getJsonWebSignature() throws IOException
IOException
Copyright © 2011–2021 Google. All rights reserved.