| Modifier and Type | Class and Description |
|---|---|
| pack-priv static interface | |
| pack-priv static interface | SSLParametersImpl.PSKCallbacks
For abstracting the |
| Modifier and Type | Field and Description |
|---|---|
| private AlgorithmConstraints | |
| pack-priv byte[] | |
| pack-priv ApplicationProtocolSelectorAdapter | |
| pack-priv boolean | channelIdEnabled
Whether the TLS Channel ID extension is enabled. |
| private boolean | |
| private final ClientSessionContext | |
| private boolean | |
| private static volatile SSLParametersImpl | |
| private static volatile X509KeyManager | |
| private static volatile X509TrustManager | |
| private static final String[] | |
| private boolean | |
| pack-priv String[] | |
| pack-priv String[] | |
| private String | |
| pack-priv boolean | |
| private boolean | |
| pack-priv byte[] | |
| private final PSKKeyManager | pskKeyManager
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| pack-priv byte[] | |
| private final ServerSessionContext | |
| private Collection | |
| private boolean | |
| pack-priv boolean | |
| private Boolean | |
| private boolean | |
| private final X509KeyManager | |
| private final X509TrustManager |
| Access | Constructor and Description |
|---|---|
| pack-priv | SSLParametersImpl(KeyManager[] kms, TrustManager[] tms, SecureRandom sr, ClientSessionContext clientSessionContext, ServerSessionContext serverSessionContext, String[] protocols)
Initializes the parameters. |
| private | SSLParametersImpl(ClientSessionContext clientSessionContext, ServerSessionContext serverSessionContext, X509KeyManager x509KeyManager, PSKKeyManager pskKeyManager, X509TrustManager x509TrustManager, SSLParametersImpl sslParams)
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
| protected Object | |
| pack-priv SSLParametersImpl | |
| private static X509KeyManager | |
| private static X509TrustManager | |
| private static String[] | |
| private static String[] | filterFromProtocols(String[] protocols, String obsoleteProtocol)
This filters |
| private static PSKKeyManager | Returns: the firstPSKKeyManager or null if not found.
Deprecated
as a consequence of
Finds the first PSKKeyManager being deprecated.
PSKKeyManager element in the provided array.
|
| private static X509KeyManager | Returns: the firstX509KeyManager or null if not found.Finds the first |
| private static X509TrustManager | Returns: the firstX509ExtendedTrustManager or
X509TrustManager or null if not found.Finds the first |
| pack-priv AlgorithmConstraints | |
| pack-priv String[] | |
| pack-priv ApplicationProtocolSelectorAdapter | |
| pack-priv ClientSessionContext | |
| pack-priv static SSLParametersImpl | |
| private static String[] | |
| private static X509KeyManager | |
| pack-priv static X509TrustManager | |
| pack-priv String[] | |
| pack-priv String[] | |
| pack-priv boolean | getEnableSessionCreation()
Returns the value indicating if the peer with this parameters allowed to cteate new SSL session |
| pack-priv String | |
| pack-priv boolean | getNeedClientAuth()
Returns the value indicating if the peer with this parameters tuned to require client authentication |
| pack-priv byte[] | |
| pack-priv PSKKeyManager | Returns: Pre-Shared Key (PSK) key manager ornull for none.
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| pack-priv AbstractSessionContext | |
| pack-priv Collection | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | getUseSni()
Returns whether connections using this SSL connection should use the TLS extension Server Name Indication (SNI). |
| pack-priv boolean | getWantClientAuth()
Returns the value indicating if the peer with this parameters tuned to request client authentication |
| pack-priv X509KeyManager | |
| pack-priv X509TrustManager | |
| pack-priv boolean | |
| private boolean | isSniEnabledByDefault()
Returns whether Server Name Indication (SNI) is enabled by default for sockets. |
| pack-priv void | |
| pack-priv void | setApplicationProtocols(String[]
the list of ALPN protocols protocols)Sets the list of ALPN protocols. |
| pack-priv void | setApplicationProtocolSelector(ApplicationProtocolSelectorAdapter applicationProtocolSelector)
Used for server-mode only. |
| pack-priv void | |
| pack-priv void | setEnabledCipherSuites(String[] cipherSuites)
Sets the enabled cipher suites after filtering through OpenSSL. |
| pack-priv void | setEnabledProtocols(String[] protocols)
Sets the list of available protocols for use in SSL connection. |
| pack-priv void | setEnableSessionCreation(boolean flag)
Allows/disallows the peer holding this parameters to create new SSL session |
| pack-priv void | |
| pack-priv void | setNeedClientAuth(boolean need)
Tunes the peer holding this parameters to require client authentication |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | setUseClientMode(boolean
if the peer is configured to work in client mode mode)Tunes the peer holding this parameters to work in client mode. |
| pack-priv void | |
| pack-priv void | setUseSni(boolean flag)
Whether connections using this SSL connection should use the TLS extension Server Name Indication (SNI). |
| pack-priv void | setWantClientAuth(boolean want)
Tunes the peer holding this parameters to request client authentication |
| algorithmConstraints | back to summary |
|---|---|
| private AlgorithmConstraints algorithmConstraints | |
| applicationProtocols | back to summary |
|---|---|
| pack-priv byte[] applicationProtocols | |
| applicationProtocolSelector | back to summary |
|---|---|
| pack-priv ApplicationProtocolSelectorAdapter applicationProtocolSelector | |
| channelIdEnabled | back to summary |
|---|---|
| pack-priv boolean channelIdEnabled Whether the TLS Channel ID extension is enabled. This field is server-side only. | |
| client_mode | back to summary |
|---|---|
| private boolean client_mode | |
| clientSessionContext | back to summary |
|---|---|
| private final ClientSessionContext clientSessionContext | |
| ctVerificationEnabled | back to summary |
|---|---|
| private boolean ctVerificationEnabled | |
| defaultParameters | back to summary |
|---|---|
| private static volatile SSLParametersImpl defaultParameters | |
| defaultX509KeyManager | back to summary |
|---|---|
| private static volatile X509KeyManager defaultX509KeyManager | |
| defaultX509TrustManager | back to summary |
|---|---|
| private static volatile X509TrustManager defaultX509TrustManager | |
| EMPTY_STRING_ARRAY | back to summary |
|---|---|
| private static final String[] EMPTY_STRING_ARRAY | |
| enable_session_creation | back to summary |
|---|---|
| private boolean enable_session_creation | |
| enabledCipherSuites | back to summary |
|---|---|
| pack-priv String[] enabledCipherSuites | |
| enabledProtocols | back to summary |
|---|---|
| pack-priv String[] enabledProtocols | |
| endpointIdentificationAlgorithm | back to summary |
|---|---|
| private String endpointIdentificationAlgorithm | |
| isEnabledProtocolsFiltered | back to summary |
|---|---|
| pack-priv boolean isEnabledProtocolsFiltered | |
| need_client_auth | back to summary |
|---|---|
| private boolean need_client_auth | |
| ocspResponse | back to summary |
|---|---|
| pack-priv byte[] ocspResponse | |
| pskKeyManager | back to summary |
|---|---|
| private final PSKKeyManager pskKeyManager
Deprecated as a consequence of
| |
| sctExtension | back to summary |
|---|---|
| pack-priv byte[] sctExtension | |
| serverSessionContext | back to summary |
|---|---|
| private final ServerSessionContext serverSessionContext | |
| sniMatchers | back to summary |
|---|---|
| private Collection<SNIMatcher> sniMatchers | |
| useCipherSuitesOrder | back to summary |
|---|---|
| private boolean useCipherSuitesOrder | |
| useSessionTickets | back to summary |
|---|---|
| pack-priv boolean useSessionTickets | |
| useSni | back to summary |
|---|---|
| private Boolean useSni | |
| want_client_auth | back to summary |
|---|---|
| private boolean want_client_auth | |
| x509KeyManager | back to summary |
|---|---|
| private final X509KeyManager x509KeyManager | |
| x509TrustManager | back to summary |
|---|---|
| private final X509TrustManager x509TrustManager | |
| SSLParametersImpl | back to summary |
|---|---|
| pack-priv SSLParametersImpl(KeyManager[] kms, TrustManager[] tms, SecureRandom sr, ClientSessionContext clientSessionContext, ServerSessionContext serverSessionContext, String[] protocols) throws KeyManagementException Initializes the parameters. Naturally this constructor is used
in SSLContextImpl.engineInit method which directly passes its
parameters. In other words this constructor holds all
the functionality provided by SSLContext.init method.
See | |
| SSLParametersImpl | back to summary |
|---|---|
| private SSLParametersImpl(ClientSessionContext clientSessionContext, ServerSessionContext serverSessionContext, X509KeyManager x509KeyManager, PSKKeyManager pskKeyManager, X509TrustManager x509TrustManager, SSLParametersImpl sslParams)
Deprecated as a consequence of
| |
| clone | back to summary |
|---|---|
| protected Object clone() Overrides java. Returns the clone of this object. | |
| cloneWithTrustManager | back to summary |
|---|---|
| pack-priv SSLParametersImpl cloneWithTrustManager(X509TrustManager newTrustManager) | |
| createDefaultX509KeyManager | back to summary |
|---|---|
| private static X509KeyManager createDefaultX509KeyManager() throws KeyManagementException | |
| createDefaultX509TrustManager | back to summary |
|---|---|
| private static X509TrustManager createDefaultX509TrustManager() throws KeyManagementException | |
| filterFromCipherSuites | back to summary |
|---|---|
| private static String[] filterFromCipherSuites(String[] cipherSuites, Set<String> toRemove) | |
| filterFromProtocols | back to summary |
|---|---|
| private static String[] filterFromProtocols(String[] protocols, String obsoleteProtocol) This filters | |
| findFirstPSKKeyManager | back to summary |
|---|---|
| private static PSKKeyManager findFirstPSKKeyManager(KeyManager[] kms)
Deprecated as a consequence of Finds the first
| |
| findFirstX509KeyManager | back to summary |
|---|---|
| private static X509KeyManager findFirstX509KeyManager(KeyManager[] kms) Finds the first
| |
| findFirstX509TrustManager | back to summary |
|---|---|
| private static X509TrustManager findFirstX509TrustManager(TrustManager[] tms) Finds the first
| |
| getAlgorithmConstraints | back to summary |
|---|---|
| pack-priv AlgorithmConstraints getAlgorithmConstraints() | |
| getApplicationProtocols | back to summary |
|---|---|
| pack-priv String[] getApplicationProtocols() | |
| getApplicationProtocolSelector | back to summary |
|---|---|
| pack-priv ApplicationProtocolSelectorAdapter getApplicationProtocolSelector() Returns the application protocol (ALPN) selector for this socket. | |
| getClientSessionContext | back to summary |
|---|---|
pack-priv ClientSessionContext getClientSessionContext()
| |
| getDefault | back to summary |
|---|---|
| pack-priv static SSLParametersImpl getDefault() throws KeyManagementException | |
| getDefaultCipherSuites | back to summary |
|---|---|
| private static String[] getDefaultCipherSuites(boolean x509CipherSuitesNeeded, boolean pskCipherSuitesNeeded) | |
| getDefaultX509KeyManager | back to summary |
|---|---|
| private static X509KeyManager getDefaultX509KeyManager() throws KeyManagementException | |
| getDefaultX509TrustManager | back to summary |
|---|---|
| pack-priv static X509TrustManager getDefaultX509TrustManager() throws KeyManagementException Gets the default X.509 trust manager. | |
| getEnabledCipherSuites | back to summary |
|---|---|
pack-priv String[] getEnabledCipherSuites()
| |
| getEnabledProtocols | back to summary |
|---|---|
pack-priv String[] getEnabledProtocols()
| |
| getEnableSessionCreation | back to summary |
|---|---|
| pack-priv boolean getEnableSessionCreation() Returns the value indicating if the peer with this parameters allowed to cteate new SSL session | |
| getEndpointIdentificationAlgorithm | back to summary |
|---|---|
| pack-priv String getEndpointIdentificationAlgorithm() | |
| getNeedClientAuth | back to summary |
|---|---|
| pack-priv boolean getNeedClientAuth() Returns the value indicating if the peer with this parameters tuned to require client authentication | |
| getOCSPResponse | back to summary |
|---|---|
| pack-priv byte[] getOCSPResponse() | |
| getPSKKeyManager | back to summary |
|---|---|
| pack-priv PSKKeyManager getPSKKeyManager()
Deprecated as a consequence of
| |
| getSessionContext | back to summary |
|---|---|
| pack-priv AbstractSessionContext getSessionContext() Returns the appropriate session context. | |
| getSNIMatchers | back to summary |
|---|---|
| pack-priv Collection | |
| getUseCipherSuitesOrder | back to summary |
|---|---|
| pack-priv boolean getUseCipherSuitesOrder() | |
| getUseClientMode | back to summary |
|---|---|
| pack-priv boolean getUseClientMode() Returns the value indicating if the parameters configured to work in client mode. | |
| getUseSni | back to summary |
|---|---|
| pack-priv boolean getUseSni() Returns whether connections using this SSL connection should use the TLS extension Server Name Indication (SNI). | |
| getWantClientAuth | back to summary |
|---|---|
| pack-priv boolean getWantClientAuth() Returns the value indicating if the peer with this parameters tuned to request client authentication | |
| getX509KeyManager | back to summary |
|---|---|
pack-priv X509KeyManager getX509KeyManager()
| |
| getX509TrustManager | back to summary |
|---|---|
pack-priv X509TrustManager getX509TrustManager()
| |
| isCTVerificationEnabled | back to summary |
|---|---|
| pack-priv boolean isCTVerificationEnabled(String hostname) Check if SCT verification is enforced for a given hostname. | |
| isSniEnabledByDefault | back to summary |
|---|---|
| private boolean isSniEnabledByDefault() Returns whether Server Name Indication (SNI) is enabled by default for sockets. For more information on SNI, see RFC 6066 section 3. | |
| setAlgorithmConstraints | back to summary |
|---|---|
| pack-priv void setAlgorithmConstraints(AlgorithmConstraints algorithmConstraints) | |
| setApplicationProtocols | back to summary |
|---|---|
| pack-priv void setApplicationProtocols(String[] protocols) Sets the list of ALPN protocols.
| |
| setApplicationProtocolSelector | back to summary |
|---|---|
| pack-priv void setApplicationProtocolSelector(ApplicationProtocolSelectorAdapter applicationProtocolSelector) Used for server-mode only. Sets or clears the application-provided ALPN protocol selector.
If set, will override the protocol list provided by | |
| setCTVerificationEnabled | back to summary |
|---|---|
| pack-priv void setCTVerificationEnabled(boolean enabled) For testing only. | |
| setEnabledCipherSuites | back to summary |
|---|---|
| pack-priv void setEnabledCipherSuites(String[] cipherSuites) Sets the enabled cipher suites after filtering through OpenSSL. | |
| setEnabledProtocols | back to summary |
|---|---|
| pack-priv void setEnabledProtocols(String[] protocols) Sets the list of available protocols for use in SSL connection.
| |
| setEnableSessionCreation | back to summary |
|---|---|
| pack-priv void setEnableSessionCreation(boolean flag) Allows/disallows the peer holding this parameters to create new SSL session | |
| setEndpointIdentificationAlgorithm | back to summary |
|---|---|
| pack-priv void setEndpointIdentificationAlgorithm(String endpointIdentificationAlgorithm) | |
| setNeedClientAuth | back to summary |
|---|---|
| pack-priv void setNeedClientAuth(boolean need) Tunes the peer holding this parameters to require client authentication | |
| setOCSPResponse | back to summary |
|---|---|
| pack-priv void setOCSPResponse(byte[] response) For testing only. | |
| setSCTExtension | back to summary |
|---|---|
| pack-priv void setSCTExtension(byte[] extension) For testing only. | |
| setSNIMatchers | back to summary |
|---|---|
| pack-priv void setSNIMatchers(Collection<SNIMatcher> sniMatchers) | |
| setUseCipherSuitesOrder | back to summary |
|---|---|
| pack-priv void setUseCipherSuitesOrder(boolean useCipherSuitesOrder) | |
| setUseClientMode | back to summary |
|---|---|
| pack-priv void setUseClientMode(boolean mode) Tunes the peer holding this parameters to work in client mode.
| |
| setUseSessionTickets | back to summary |
|---|---|
| pack-priv void setUseSessionTickets(boolean useSessionTickets) | |
| setUseSni | back to summary |
|---|---|
| pack-priv void setUseSni(boolean flag) Whether connections using this SSL connection should use the TLS extension Server Name Indication (SNI). | |
| setWantClientAuth | back to summary |
|---|---|
| pack-priv void setWantClientAuth(boolean want) Tunes the peer holding this parameters to request client authentication | |
X509KeyManager#chooseClientAlias(String[], java.security.Principal[], java.net.Socket)
and
X509ExtendedKeyManager#chooseEngineClientAlias(String[], java.security.Principal[], javax.net.ssl.SSLEngine)
| chooseClientAlias | back to summary |
|---|---|
| public String chooseClientAlias(X509KeyManager keyManager, X500Principal[] issuers, String[] keyTypes) | |
| chooseServerAlias | back to summary |
|---|---|
| public String chooseServerAlias(X509KeyManager keyManager, String keyType) | |
PSKKeyManager calls between those taking an SSLSocket and
those taking an SSLEngine.
| Modifier and Type | Method and Description |
|---|---|
| public String | chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint)
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| public String | chooseServerPSKIdentityHint(PSKKeyManager keyManager)
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| public SecretKey | getPSKKey(PSKKeyManager keyManager, String identityHint, String identity)
Deprecated
as a consequence of
PSKKeyManager being deprecated.
|
| chooseClientPSKIdentity | back to summary |
|---|---|
| public String chooseClientPSKIdentity(PSKKeyManager keyManager, String identityHint)
Deprecated as a consequence of | |
| chooseServerPSKIdentityHint | back to summary |
|---|---|
| public String chooseServerPSKIdentityHint(PSKKeyManager keyManager)
Deprecated as a consequence of | |
| getPSKKey | back to summary |
|---|---|
| public SecretKey getPSKKey(PSKKeyManager keyManager, String identityHint, String identity)
Deprecated as a consequence of | |