Class SelfSignedCaCertificate


  • public class SelfSignedCaCertificate
    extends java.lang.Object
    A self-signed certificate authority (CA) cert for use in tests.
    • Constructor Detail

      • SelfSignedCaCertificate

        public SelfSignedCaCertificate​(java.security.PrivateKey privateKey,
                                       java.security.cert.X509Certificate cert)
    • Method Detail

      • key

        public java.security.PrivateKey key()
      • cert

        public java.security.cert.X509Certificate cert()
      • create

        public static SelfSignedCaCertificate create​(java.lang.String fqdn)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • create

        public static SelfSignedCaCertificate create​(java.lang.String fqdn,
                                                     java.util.Date from,
                                                     java.util.Date to)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • create

        public static SelfSignedCaCertificate create​(java.lang.String fqdn,
                                                     org.joda.time.DateTime from,
                                                     org.joda.time.DateTime to)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • create

        public static SelfSignedCaCertificate create​(java.security.KeyPair keyPair,
                                                     java.lang.String fqdn,
                                                     java.util.Date from,
                                                     java.util.Date to)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • create

        public static SelfSignedCaCertificate create​(java.security.KeyPair keyPair,
                                                     java.lang.String fqdn,
                                                     org.joda.time.DateTime from,
                                                     org.joda.time.DateTime to)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception