APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.security.ssl

pack-priv final Class SSLConfiguration

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.security.AlgorithmConstraints, .NoSuchAlgorithmException, java.util.*, java.util.function.BiFunction, javax.crypto.KeyGenerator, javax.net.ssl.HandshakeCompletedListener, .SNIMatcher, .SNIServerName, .SSLEngine, .SSLParameters, .SSLSocket, sun.security.ssl.SSLExtension.ClientExtensions, .SSLExtension.ServerExtensions, .SignatureScheme.SupportedSigSchemes

SSL/(D)TLS configuration.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
pack-priv static final boolean
pack-priv static final boolean
pack-priv String[]
pack-priv ClientAuthType
pack-priv List<CipherSuite>
pack-priv List<ProtocolVersion>
pack-priv static final boolean
pack-priv static final boolean
pack-priv boolean
pack-priv boolean
pack-priv BiFunction<SSLEngine, List<String>, String>
pack-priv HashSet<HandshakeCompletedListener>
pack-priv String
pack-priv boolean
pack-priv boolean
pack-priv static final int
pack-priv int
pack-priv static final int
pack-priv static final int
pack-priv String[]
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv static final int
pack-priv List<SNIServerName>
pack-priv static final int
pack-priv String[]
pack-priv Collection<SNIMatcher>
pack-priv BiFunction<SSLSocket, List<String>, String>
private static final boolean
pack-priv static final boolean
pack-priv AlgorithmConstraints

Constructor Summary

AccessConstructor and Description
pack-priv
SSLConfiguration(SSLContextImpl sslContext, boolean isClientMode)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
public Object
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

private static String[]
pack-priv SSLExtension[]
getEnabledExtensions(SSLHandshake handshakeType)

Get the enabled extensions for the specific handshake message.

pack-priv SSLExtension[]
getEnabledExtensions(SSLHandshake handshakeType, ProtocolVersion protocolVersion)

Get the enabled extensions for the specific handshake message and the specific protocol version.

pack-priv SSLExtension[]
getEnabledExtensions(SSLHandshake handshakeType, List<ProtocolVersion> activeProtocols)

Get the enabled extensions for the specific handshake message and the specific protocol versions.

pack-priv SSLExtension[]
getExclusiveExtensions(SSLHandshake handshakeType, List<SSLExtension> excluded)

Get the enabled extensions for the specific handshake message, excluding the specified extensions.

pack-priv SSLParameters
pack-priv boolean
isAvailable(SSLExtension extension)

Return true if the extension is available.

pack-priv boolean
isAvailable(SSLExtension extension, ProtocolVersion protocolVersion)

Return true if the extension is available for the specific protocol.

public boolean
pack-priv void
public void
setQuic(boolean quic)

pack-priv void
pack-priv void
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

acknowledgeCloseNotifyback to summary
pack-priv static final boolean acknowledgeCloseNotify
allowLegacyMasterSecretback to summary
pack-priv static final boolean allowLegacyMasterSecret
allowLegacyResumptionback to summary
pack-priv static final boolean allowLegacyResumption
applicationProtocolsback to summary
pack-priv String[] applicationProtocols
clientAuthTypeback to summary
pack-priv ClientAuthType clientAuthType
enabledCipherSuitesback to summary
pack-priv List<CipherSuite> enabledCipherSuites
enabledProtocolsback to summary
pack-priv List<ProtocolVersion> enabledProtocols
enableDtlsResumeCookieback to summary
pack-priv static final boolean enableDtlsResumeCookie
enableFFDHEback to summary
pack-priv static final boolean enableFFDHE
enableRetransmissionsback to summary
pack-priv boolean enableRetransmissions
enableSessionCreationback to summary
pack-priv boolean enableSessionCreation
engineAPSelectorback to summary
pack-priv BiFunction<SSLEngine, List<String>, String> engineAPSelector
handshakeListenersback to summary
pack-priv HashSet<HandshakeCompletedListener> handshakeListeners
identificationProtocolback to summary
pack-priv String identificationProtocol
isClientModeback to summary
pack-priv boolean isClientMode
isQuicback to summary
pack-priv boolean isQuic
maxHandshakeMessageSizeback to summary
pack-priv static final int maxHandshakeMessageSize
maximumPacketSizeback to summary
pack-priv int maximumPacketSize
maxInboundClientCertChainLenback to summary
pack-priv static final int maxInboundClientCertChainLen
maxInboundServerCertChainLenback to summary
pack-priv static final int maxInboundServerCertChainLen
namedGroupsback to summary
pack-priv String[] namedGroups
noSniExtensionback to summary
pack-priv boolean noSniExtension
noSniMatcherback to summary
pack-priv boolean noSniMatcher
preferLocalCipherSuitesback to summary
pack-priv boolean preferLocalCipherSuites
SERVER_NST_DEFAULTback to summary
pack-priv static final int SERVER_NST_DEFAULT
serverNamesback to summary
pack-priv List<SNIServerName> serverNames
serverNewSessionTicketCountback to summary
pack-priv static final int serverNewSessionTicketCount
signatureSchemesback to summary
pack-priv String[] signatureSchemes
sniMatchersback to summary
pack-priv Collection<SNIMatcher> sniMatchers
socketAPSelectorback to summary
pack-priv BiFunction<SSLSocket, List<String>, String> socketAPSelector
useCompatibilityModeback to summary
private static final boolean useCompatibilityMode
useExtendedMasterSecretback to summary
pack-priv static final boolean useExtendedMasterSecret
userSpecifiedAlgorithmConstraintsback to summary
pack-priv AlgorithmConstraints userSpecifiedAlgorithmConstraints

Constructor Detail

SSLConfigurationback to summary
pack-priv SSLConfiguration(SSLContextImpl sslContext, boolean isClientMode)

Method Detail

addHandshakeCompletedListenerback to summary
pack-priv void addHandshakeCompletedListener(HandshakeCompletedListener listener)
cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

Annotations
@Override
@SuppressWarnings:unchecked, CloneDeclaresCloneNotSupported
getCustomizedSignatureSchemeback to summary
private static String[] getCustomizedSignatureScheme(String propertyName)
getEnabledExtensionsback to summary
pack-priv SSLExtension[] getEnabledExtensions(SSLHandshake handshakeType)

Get the enabled extensions for the specific handshake message. Used to consume handshake extensions.

getEnabledExtensionsback to summary
pack-priv SSLExtension[] getEnabledExtensions(SSLHandshake handshakeType, ProtocolVersion protocolVersion)

Get the enabled extensions for the specific handshake message and the specific protocol version. Used to produce handshake extensions after handshake protocol version negotiation.

getEnabledExtensionsback to summary
pack-priv SSLExtension[] getEnabledExtensions(SSLHandshake handshakeType, List<ProtocolVersion> activeProtocols)

Get the enabled extensions for the specific handshake message and the specific protocol versions. Used to produce ClientHello extensions before handshake protocol version negotiation.

getExclusiveExtensionsback to summary
pack-priv SSLExtension[] getExclusiveExtensions(SSLHandshake handshakeType, List<SSLExtension> excluded)

Get the enabled extensions for the specific handshake message, excluding the specified extensions. Used to consume handshake extensions.

getSSLParametersback to summary
pack-priv SSLParameters getSSLParameters()
isAvailableback to summary
pack-priv boolean isAvailable(SSLExtension extension)

Return true if the extension is available.

isAvailableback to summary
pack-priv boolean isAvailable(SSLExtension extension, ProtocolVersion protocolVersion)

Return true if the extension is available for the specific protocol.

isUseCompatibilityModeback to summary
public boolean isUseCompatibilityMode()
removeHandshakeCompletedListenerback to summary
pack-priv void removeHandshakeCompletedListener(HandshakeCompletedListener listener)
setQuicback to summary
public void setQuic(boolean quic)
setSSLParametersback to summary
pack-priv void setSSLParameters(SSLParameters params)
toggleClientModeback to summary
pack-priv void toggleClientMode()
sun.security.ssl back to summary

private final Class SSLConfiguration.CustomizedClientSignatureSchemes

extends Object
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.SSLConfiguration.CustomizedClientSignatureSchemes

Field Summary

Modifier and TypeField and Description
private static final String[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

signatureSchemesback to summary
private static final String[] signatureSchemes

Constructor Detail

CustomizedClientSignatureSchemesback to summary
private CustomizedClientSignatureSchemes()
sun.security.ssl back to summary

private final Class SSLConfiguration.CustomizedServerSignatureSchemes

extends Object
Class Inheritance
  • java.lang.Object
  • sun.security.ssl.SSLConfiguration.CustomizedServerSignatureSchemes

Field Summary

Modifier and TypeField and Description
private static final String[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

signatureSchemesback to summary
private static final String[] signatureSchemes

Constructor Detail

CustomizedServerSignatureSchemesback to summary
private CustomizedServerSignatureSchemes()