Class DefaultTestCerts


  • public final class DefaultTestCerts
    extends java.lang.Object
    Provides a set of certificates useful for tests that require SSL.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.InputStream loadClientCAPem()
      Load the certificate of the Certificate Authority used to sign the loadClientPem().
      static java.io.InputStream loadClientKey()
      Load the client private key.
      static java.io.InputStream loadClientPem()
      Load the client certificate chain file.
      static java.io.InputStream loadServerCAPem()
      Load the certificate of the Certificate Authority used to sign the loadServerPem().
      static java.io.InputStream loadServerKey()
      Load the server private key.
      static java.io.InputStream loadServerPem()
      Load the server certificate chain file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadServerKey

        public static java.io.InputStream loadServerKey()
        Load the server private key.
        Returns:
        an InputStream from the server private key file.
      • loadServerPem

        public static java.io.InputStream loadServerPem()
        Load the server certificate chain file.
        Returns:
        an InputStream from the server certificate chain file.
      • loadServerCAPem

        public static java.io.InputStream loadServerCAPem()
        Load the certificate of the Certificate Authority used to sign the loadServerPem().
        Returns:
        an InputStream whose contents is the certificate of the Certificate Authority used to sign the loadServerPem().
      • loadClientKey

        public static java.io.InputStream loadClientKey()
        Load the client private key.
        Returns:
        an InputStream from the client private key file.
      • loadClientPem

        public static java.io.InputStream loadClientPem()
        Load the client certificate chain file.
        Returns:
        an InputStream from the client certificate chain file.
      • loadClientCAPem

        public static java.io.InputStream loadClientCAPem()
        Load the certificate of the Certificate Authority used to sign the loadClientPem().
        Returns:
        an InputStream whose contents is the certificate of the Certificate Authority used to sign the loadClientPem().