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 java.lang.String |
CA_KEY
Private key for
CA_CERT . |
static TestCertificates.CertData |
FOO_BAR_COM_CERT
Test leaf certificate.
|
static java.lang.String |
FOO_BAR_COM_KEY
Private key for
FOO_BAR_COM_CERT . |
static java.lang.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 java.lang.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 java.lang.String CA_KEY
CA_CERT
.public static final TestCertificates.CertData BOGUS_CA_CERT
Issuer: CN=Root Subject: CN=Root
public static final java.lang.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 java.io.IOException
java.io.IOException
Copyright © 2011-2018 Google. All Rights Reserved.