Class TestCertificates


  • @Beta
    public class TestCertificates
    extends java.lang.Object
    Beta
    Test certificates.

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

    Since:
    1.19.1.
    • Field Detail

      • 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
         
      • FOO_BAR_COM_KEY

        public static final java.lang.String FOO_BAR_COM_KEY
        Private key for FOO_BAR_COM_CERT.
        See Also:
        Constant Field Values
      • CA_KEY

        public static final java.lang.String CA_KEY
        Private key for CA_CERT.
        See Also:
        Constant Field Values
      • BOGUS_CA_CERT

        public static final TestCertificates.CertData BOGUS_CA_CERT
        CA certificate signed with a bogus key.
         Issuer: CN=Root
         Subject: CN=Root
         
      • JWS_SIGNATURE

        public static final java.lang.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.

        See Also:
        Constant Field Values
    • Constructor Detail

      • TestCertificates

        public TestCertificates()
    • Method Detail

      • getJsonWebSignature

        public static JsonWebSignature getJsonWebSignature()
                                                    throws java.io.IOException
        Throws:
        java.io.IOException