Class SSLUtils


  • public class SSLUtils
    extends java.lang.Object
    An SSL utility class.
    Since:
    6.4.0
    • Constructor Summary

      Constructors 
      Constructor Description
      SSLUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.net.ssl.KeyManagerFactory buildKeystore​(org.apereo.cas.configuration.model.core.util.ClientCertificateProperties properties)
      Build keystore key manager factory.
      static javax.net.ssl.SSLContext buildSSLContext​(org.apereo.cas.configuration.model.core.util.ClientCertificateProperties clientCertificate)
      Build ssl context.
      • Methods inherited from class java.lang.Object

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

      • SSLUtils

        public SSLUtils()
    • Method Detail

      • buildKeystore

        public static javax.net.ssl.KeyManagerFactory buildKeystore​(org.apereo.cas.configuration.model.core.util.ClientCertificateProperties properties)
        Build keystore key manager factory.
        Parameters:
        properties - the properties
        Returns:
        the key manager factory
      • buildSSLContext

        public static javax.net.ssl.SSLContext buildSSLContext​(org.apereo.cas.configuration.model.core.util.ClientCertificateProperties clientCertificate)
        Build ssl context.
        Parameters:
        clientCertificate - the client certificate
        Returns:
        the ssl context