Class JSSEUtil

  • All Implemented Interfaces:
    SSLUtil

    public class JSSEUtil
    extends SSLUtilBase
    SSLUtil implementation for JSSE.
    • Constructor Detail

      • JSSEUtil

        public JSSEUtil​(SSLHostConfigCertificate certificate)
        Constructs an instance for the given certificate.
        Parameters:
        certificate - The certificate
      • JSSEUtil

        public JSSEUtil​(SSLHostConfigCertificate certificate,
                        boolean warnOnSkip)
        Constructs an instance for the given certificate.
        Parameters:
        certificate - The certificate
        warnOnSkip - Whether to warn when skipping unsupported protocols/ciphers
    • Method Detail

      • getLog

        protected Log getLog()
        Description copied from class: SSLUtilBase
        Returns the log for this utility.
        Specified by:
        getLog in class SSLUtilBase
        Returns:
        the log
      • getImplementedProtocols

        protected java.util.Set<java.lang.String> getImplementedProtocols()
        Description copied from class: SSLUtilBase
        Returns the set of implemented SSL/TLS protocols.
        Specified by:
        getImplementedProtocols in class SSLUtilBase
        Returns:
        the implemented protocols
      • getImplementedCiphers

        protected java.util.Set<java.lang.String> getImplementedCiphers()
        Description copied from class: SSLUtilBase
        Returns the set of implemented SSL/TLS ciphers.
        Specified by:
        getImplementedCiphers in class SSLUtilBase
        Returns:
        the implemented ciphers
      • isTls13RenegAuthAvailable

        protected boolean isTls13RenegAuthAvailable()
        Description copied from class: SSLUtilBase
        Returns whether TLS 1.3 renegotiation authentication is available.
        Specified by:
        isTls13RenegAuthAvailable in class SSLUtilBase
        Returns:
        true if TLS 1.3 renegotiation authentication is available
      • createSSLContextInternal

        public SSLContext createSSLContextInternal​(java.util.List<java.lang.String> negotiableProtocols)
                                            throws java.security.NoSuchAlgorithmException
        Description copied from class: SSLUtilBase
        Creates an SSL context with the given negotiable protocols.
        Specified by:
        createSSLContextInternal in class SSLUtilBase
        Parameters:
        negotiableProtocols - The negotiable protocols
        Returns:
        the SSL context
        Throws:
        java.security.NoSuchAlgorithmException