Package org.conscrypt

Class SSLParametersImpl

java.lang.Object
org.conscrypt.SSLParametersImpl
All Implemented Interfaces:
Cloneable

public class SSLParametersImpl
extends Object
implements Cloneable
The instances of this class encapsulate all the info about enabled cipher suites and protocols, as well as the information about client/server mode of ssl socket, whether it require/want client authentication or not, and controls whether new SSL sessions may be established by this socket or not.
  • Constructor Details

  • Method Details

    • getEnabledCipherSuitesMember

      protected CipherSuite[] getEnabledCipherSuitesMember()
    • getDefault

      protected static SSLParametersImpl getDefault() throws KeyManagementException
      Throws:
      KeyManagementException
    • getServerSessionContext

      protected ServerSessionContext getServerSessionContext()
      Returns:
      server session context
    • getClientSessionContext

      protected ClientSessionContext getClientSessionContext()
      Returns:
      client session context
    • getKeyManager

      protected X509KeyManager getKeyManager()
      Returns:
      key manager
    • getTrustManager

      protected X509TrustManager getTrustManager()
      Returns:
      trust manager
    • getSecureRandom

      protected SecureRandom getSecureRandom()
      Returns:
      secure random
    • getSecureRandomMember

      protected SecureRandom getSecureRandomMember()
      Returns:
      the secure random member reference, even it is null
    • getEnabledCipherSuites

      protected String[] getEnabledCipherSuites()
      Returns:
      the names of enabled cipher suites
    • setEnabledCipherSuites

      protected void setEnabledCipherSuites​(String[] suites)
      Sets the set of available cipher suites for use in SSL connection.
      Parameters:
      suites - : String[]
    • getEnabledProtocols

      protected String[] getEnabledProtocols()
      Returns:
      the set of enabled protocols
    • setEnabledProtocols

      protected void setEnabledProtocols​(String[] protocols)
      Sets the set of available protocols for use in SSL connection.
      Parameters:
      protocols - String[]
    • setUseClientMode

      protected void setUseClientMode​(boolean mode)
      Tunes the peer holding this parameters to work in client mode.
      Parameters:
      mode - if the peer is configured to work in client mode
    • getUseClientMode

      protected boolean getUseClientMode()
      Returns the value indicating if the parameters configured to work in client mode.
    • setNeedClientAuth

      protected void setNeedClientAuth​(boolean need)
      Tunes the peer holding this parameters to require client authentication
    • getNeedClientAuth

      protected boolean getNeedClientAuth()
      Returns the value indicating if the peer with this parameters tuned to require client authentication
    • setWantClientAuth

      protected void setWantClientAuth​(boolean want)
      Tunes the peer holding this parameters to request client authentication
    • getWantClientAuth

      protected boolean getWantClientAuth()
      Returns the value indicating if the peer with this parameters tuned to request client authentication
      Returns:
    • setEnableSessionCreation

      protected void setEnableSessionCreation​(boolean flag)
      Allows/disallows the peer holding this parameters to create new SSL session
    • getEnableSessionCreation

      protected boolean getEnableSessionCreation()
      Returns the value indicating if the peer with this parameters allowed to cteate new SSL session
    • clone

      protected Object clone()
      Returns the clone of this object.
      Overrides:
      clone in class Object
      Returns:
      the clone.
    • getDefaultTrustManager

      public static X509TrustManager getDefaultTrustManager() throws KeyManagementException
      Gets the default trust manager. TODO: Move this to a published API under dalvik.system.
      Throws:
      KeyManagementException