Class X509SSLContextInitializer

    • Field Detail

      • trustCerts

        private X509Certificate[] trustCerts
        Certificates used to create trust managers.
      • authenticationCert

        private X509Certificate authenticationCert
        Certificate used to create key managers.
      • authenticationKey

        private PrivateKey authenticationKey
        Private key used to create key managers.
    • Constructor Detail

      • X509SSLContextInitializer

        public X509SSLContextInitializer()
    • Method Detail

      • getTrustCertificates

        public X509Certificate[] getTrustCertificates()
        Returns the certificates to use for creating the trust managers.
        Returns:
        X.509 certificates
      • setTrustCertificates

        public void setTrustCertificates​(X509Certificate... certs)
        Sets the certificates to use for creating the trust managers.
        Parameters:
        certs - X.509 certificates
      • getAuthenticationCertificate

        public X509Certificate getAuthenticationCertificate()
        Returns the certificate to use for creating the key managers.
        Returns:
        X.509 certificate
      • setAuthenticationCertificate

        public void setAuthenticationCertificate​(X509Certificate cert)
        Sets the certificate to use for creating the key managers.
        Parameters:
        cert - X.509 certificate
      • getAuthenticationKey

        public PrivateKey getAuthenticationKey()
        Returns the private key associated with the authentication certificate.
        Returns:
        private key
      • setAuthenticationKey

        public void setAuthenticationKey​(PrivateKey key)
        Sets the private key associated with the authentication certificate.
        Parameters:
        key - private key