Package org.mozilla.jss.ssl.javax
Class JSSParameters
java.lang.Object
javax.net.ssl.SSLParameters
org.mozilla.jss.ssl.javax.JSSParameters
JSSParameters is an implementation of SSLParameters to interoperate
with NSS.
In particular, we extend SSLParameters to provide cipher suites and
protocol versions as NSS constants. This aids with the JNI translation
layer. We also create a default set of SSLParameters which use a null
cipher suite list and null protocol version list to fall back on the
NSS default. On RHEL-like systems, this will default to CryptoPolicies.
We also need to store the desired certificate alias; this contrasts to
the SNI functionality provided by SSLParameters in that it ties back
to a certificate in the NSS DB and works with client certificates. When
using the JSSEngine implementation of SSLEngine, only the alias will be
used to find the certificate.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private Collection
<? extends EventListener> private SSLVersionRange
private SSLCipher[]
-
Constructor Summary
ConstructorsConstructorDescriptionJSSParameters
(String[] cipherSuites) JSSParameters
(String[] cipherSuites, String[] protocols) JSSParameters
(SSLParameters downcast) -
Method Summary
Modifier and TypeMethodDescriptiongetAlias()
String[]
Collection
<? extends EventListener> String[]
void
void
setCipherSuites
(String[] cipherSuites) void
setCipherSuites
(SSLCipher[] cipherSuites) void
setHostname
(String server_hostname) void
setListeners
(Collection<? extends EventListener> new_listeners) void
setProtocols
(String[] protocols) void
setProtocols
(SSLVersionRange vrange) void
setProtocols
(SSLVersion min, SSLVersion max) Methods inherited from class javax.net.ssl.SSLParameters
getAlgorithmConstraints, getApplicationProtocols, getEnableRetransmissions, getEndpointIdentificationAlgorithm, getMaximumPacketSize, getNamedGroups, getNeedClientAuth, getServerNames, getSignatureSchemes, getSNIMatchers, getUseCipherSuitesOrder, getWantClientAuth, setAlgorithmConstraints, setApplicationProtocols, setEnableRetransmissions, setEndpointIdentificationAlgorithm, setMaximumPacketSize, setNamedGroups, setNeedClientAuth, setServerNames, setSignatureSchemes, setSNIMatchers, setUseCipherSuitesOrder, setWantClientAuth
-
Field Details
-
suites
-
range
-
alias
-
hostname
-
listeners
-
-
Constructor Details
-
JSSParameters
public JSSParameters() -
JSSParameters
-
JSSParameters
-
JSSParameters
-
-
Method Details
-
setCipherSuites
- Overrides:
setCipherSuites
in classSSLParameters
- Throws:
IllegalArgumentException
-
setCipherSuites
-
getCipherSuites
- Overrides:
getCipherSuites
in classSSLParameters
-
getSSLCiphers
-
setProtocols
- Overrides:
setProtocols
in classSSLParameters
- Throws:
IllegalArgumentException
-
setProtocols
-
setProtocols
-
getProtocols
- Overrides:
getProtocols
in classSSLParameters
-
getSSLVersionRange
-
getAlias
-
setAlias
-
getHostname
-
setHostname
-
getListeners
-
setListeners
-