org.springframework.boot.web.server

Class Ssl



  • public class Ssl
    extends Object
    Simple server-independent abstraction for SSL configuration.
    Since:
    2.0.0
    Author:
    Andy Wilkinson, Vladimir Tsanev, Stephane Nicoll
    • Constructor Detail

      • Ssl

        public Ssl()
    • Method Detail

      • isEnabled

        public boolean isEnabled()
        Return whether to enable SSL support.
        Returns:
        whether to enable SSL support
      • setEnabled

        public void setEnabled(boolean enabled)
      • getClientAuth

        public Ssl.ClientAuth getClientAuth()
        Return Whether client authentication is wanted ("want") or needed ("need"). Requires a trust store.
        Returns:
        the Ssl.ClientAuth to use
      • setClientAuth

        public void setClientAuth(Ssl.ClientAuth clientAuth)
      • getCiphers

        public String[] getCiphers()
        Return the supported SSL ciphers.
        Returns:
        the supported SSL ciphers
      • setCiphers

        public void setCiphers(String[] ciphers)
      • getEnabledProtocols

        public String[] getEnabledProtocols()
        Return the enabled SSL protocols.
        Returns:
        the enabled SSL protocols.
      • setEnabledProtocols

        public void setEnabledProtocols(String[] enabledProtocols)
      • getKeyAlias

        public String getKeyAlias()
        Return the alias that identifies the key in the key store.
        Returns:
        the key alias
      • setKeyAlias

        public void setKeyAlias(String keyAlias)
      • getKeyPassword

        public String getKeyPassword()
        Return the password used to access the key in the key store.
        Returns:
        the key password
      • setKeyPassword

        public void setKeyPassword(String keyPassword)
      • getKeyStore

        public String getKeyStore()
        Return the path to the key store that holds the SSL certificate (typically a jks file).
        Returns:
        the path to the key store
      • setKeyStore

        public void setKeyStore(String keyStore)
      • getKeyStorePassword

        public String getKeyStorePassword()
        Return the password used to access the key store.
        Returns:
        the key store password
      • setKeyStorePassword

        public void setKeyStorePassword(String keyStorePassword)
      • getKeyStoreType

        public String getKeyStoreType()
        Return the type of the key store.
        Returns:
        the key store type
      • setKeyStoreType

        public void setKeyStoreType(String keyStoreType)
      • getKeyStoreProvider

        public String getKeyStoreProvider()
        Return the provider for the key store.
        Returns:
        the key store provider
      • setKeyStoreProvider

        public void setKeyStoreProvider(String keyStoreProvider)
      • getTrustStore

        public String getTrustStore()
        Return the trust store that holds SSL certificates.
        Returns:
        the trust store
      • setTrustStore

        public void setTrustStore(String trustStore)
      • getTrustStorePassword

        public String getTrustStorePassword()
        Return the password used to access the trust store.
        Returns:
        the trust store password
      • setTrustStorePassword

        public void setTrustStorePassword(String trustStorePassword)
      • getTrustStoreType

        public String getTrustStoreType()
        Return the type of the trust store.
        Returns:
        the trust store type
      • setTrustStoreType

        public void setTrustStoreType(String trustStoreType)
      • getTrustStoreProvider

        public String getTrustStoreProvider()
        Return the provider for the trust store.
        Returns:
        the trust store provider
      • setTrustStoreProvider

        public void setTrustStoreProvider(String trustStoreProvider)
      • getProtocol

        public String getProtocol()
        Return the SSL protocol to use.
        Returns:
        the SSL protocol
      • setProtocol

        public void setProtocol(String protocol)

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.