Package org.glassfish.grizzly.config.dom
Interface Ssl
- All Superinterfaces:
org.jvnet.hk2.config.ConfigBeanProxy,org.jvnet.hk2.config.types.PropertyBag
public interface Ssl
extends org.jvnet.hk2.config.ConfigBeanProxy, org.jvnet.hk2.config.types.PropertyBag
Define SSL processing parameters
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
org.jvnet.hk2.config.ConfigBeanProxy.DuckNested classes/interfaces inherited from interface org.jvnet.hk2.config.types.PropertyBag
org.jvnet.hk2.config.types.PropertyBag.Duck -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanstatic final Stringstatic final intstatic final longstatic final intstatic final Stringstatic final booleanstatic final Stringstatic final booleanstatic final booleanstatic final Stringstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final boolean -
Method Summary
Modifier and TypeMethodDescriptionDoes SSL configuration allow implementation to initialize it lazily wayNickname of the server certificate in the certificate database or the PKCS#11 token.@Pattern(regexp="(|need|want)",message="Valid values: (|need|want)") StringDetermines if if the engine will request (want) or require (need) client authentication.Determines whether SSL3 client authentication is performed on every request, independent of ACL-based access control.Handshake modeLocation of the keystore filepassword of the keystore file@Pattern(regexp="(JKS|NSS)",message="Valid values: (JKS|NSS)") Stringtype of the keystore fileDetermines whether or not ssl session renegotiation will occur if client-auth is set to want.@Pattern(regexp="((\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3)(\\s*,\\s*(\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3))*)*",message="Valid values: ((\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3)(\\s*,\\s*(\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3))*)*") StringA comma-separated list of the SSL2 ciphers used, with the prefix + to enable or - to disable, for example +rc4.Determines whether SSL2 is enabled.Determines whether SSL3 is enabled.A comma-separated list of the SSL3 ciphers used, with the prefix + to enable or - to disable, for example +SSL_RSA_WITH_RC4_128_MD5.Determines whether TLS 1.1 is enabled.Determines whether TLS 1.2 is enabled.Determines whether TLS 1.3 is enabled.Determines whether TLS is enabled.Determines whether TLS rollback is enabled.password of the truststore file@Pattern(regexp="(JKS|NSS)",message="Valid values: (JKS|NSS)") Stringtype of the truststore filevoidsetAllowLazyInit(String value) voidsetCertNickname(String value) voidsetClassname(String value) voidsetClientAuth(String value) voidsetClientAuthEnabled(String value) voidsetCrlFile(String crlFile) voidsetHandshakeTimeoutMillis(String timeoutMillis) voidsetKeyAlgorithm(String algorithm) voidsetKeyStore(String location) voidsetKeyStorePassword(String password) voidsetKeyStorePasswordProvider(String provider) voidsetKeyStoreType(String type) voidsetRenegotiateOnClientAuthWant(boolean renegotiateClientAuthWant) voidsetSsl2Ciphers(String value) voidsetSsl2Enabled(String value) voidsetSsl3Enabled(String value) voidsetSsl3TlsCiphers(String value) voidsetSSLInactivityTimeout(int handshakeTimeout) voidsetTls11Enabled(String value) voidsetTls12Enabled(String value) voidsetTls13Enabled(String value) voidsetTlsEnabled(String value) voidsetTlsRollbackEnabled(String value) voidsetTrustAlgorithm(String algorithm) voidsetTrustMaxCertLength(String maxLength) voidsetTrustStore(String location) voidsetTrustStorePassword(String password) voidsetTrustStorePasswordProvider(String provider) voidsetTrustStoreType(String type) Methods inherited from interface org.jvnet.hk2.config.ConfigBeanProxy
createChild, deepCopy, getParent, getParentMethods inherited from interface org.jvnet.hk2.config.types.PropertyBag
addProperty, getProperty, getProperty, getPropertyValue, getPropertyValue, lookupProperty, removeProperty, removeProperty
-
Field Details
-
ALLOW_LAZY_INIT
static final boolean ALLOW_LAZY_INIT- See Also:
-
CLIENT_AUTH_ENABLED
static final boolean CLIENT_AUTH_ENABLED- See Also:
-
SSL2_ENABLED
static final boolean SSL2_ENABLED- See Also:
-
SSL3_ENABLED
static final boolean SSL3_ENABLED- See Also:
-
TLS_ENABLED
static final boolean TLS_ENABLED- See Also:
-
TLS11_ENABLED
static final boolean TLS11_ENABLED- See Also:
-
TLS12_ENABLED
static final boolean TLS12_ENABLED- See Also:
-
TLS13_ENABLED
static final boolean TLS13_ENABLED- See Also:
-
TLS_ROLLBACK_ENABLED
static final boolean TLS_ROLLBACK_ENABLED- See Also:
-
RENEGOTIATE_ON_CLIENT_AUTH_WANT
static final boolean RENEGOTIATE_ON_CLIENT_AUTH_WANT- See Also:
-
MAX_CERT_LENGTH
static final int MAX_CERT_LENGTH- See Also:
-
DEFAULT_SSL_INACTIVITY_TIMEOUT
static final int DEFAULT_SSL_INACTIVITY_TIMEOUT- See Also:
-
CLIENT_AUTH_PATTERN
- See Also:
-
STORE_TYPE_PATTERN
- See Also:
-
PASSWORD_PROVIDER
- See Also:
-
SSL2_CIPHERS_PATTERN
- See Also:
-
HANDSHAKE_TIMEOUT_MILLIS
static final long HANDSHAKE_TIMEOUT_MILLIS- See Also:
-
-
Method Details
-
getCertNickname
String getCertNickname()Nickname of the server certificate in the certificate database or the PKCS#11 token. In the certificate, the name format is token name:nickname. Including the token name: part of the name in this attribute is optional. -
setCertNickname
-
getClientAuthEnabled
String getClientAuthEnabled()Determines whether SSL3 client authentication is performed on every request, independent of ACL-based access control. -
setClientAuthEnabled
-
getClientAuth
@Pattern(regexp="(|need|want)", message="Valid values: (|need|want)") @Pattern(regexp="(|need|want)",message="Valid values: (|need|want)") String getClientAuth()Determines if if the engine will request (want) or require (need) client authentication. Valid values: want, need, or left blank -
setClientAuth
-
getCrlFile
String getCrlFile() -
setCrlFile
-
getKeyAlgorithm
String getKeyAlgorithm() -
setKeyAlgorithm
-
getKeyStoreType
@Pattern(regexp="(JKS|NSS)", message="Valid values: (JKS|NSS)") @Pattern(regexp="(JKS|NSS)",message="Valid values: (JKS|NSS)") String getKeyStoreType()type of the keystore file -
setKeyStoreType
-
getKeyStorePasswordProvider
String getKeyStorePasswordProvider() -
setKeyStorePasswordProvider
-
getKeyStorePassword
String getKeyStorePassword()password of the keystore file -
setKeyStorePassword
-
getKeyStore
String getKeyStore()Location of the keystore file -
setKeyStore
-
getClassname
String getClassname() -
setClassname
-
getSsl2Ciphers
@Pattern(regexp="((\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3)(\\s*,\\s*(\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3))*)*", message="Valid values: ((\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3)(\\s*,\\s*(\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3))*)*") @Pattern(regexp="((\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3)(\\s*,\\s*(\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3))*)*",message="Valid values: ((\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3)(\\s*,\\s*(\\+|\\-)(rc2|rc2export|rc4|rc4export|idea|des|desede3))*)*") String getSsl2Ciphers()A comma-separated list of the SSL2 ciphers used, with the prefix + to enable or - to disable, for example +rc4. Allowed values are rc4, rc4export, rc2, rc2export, idea, des, desede3. If no value is specified, all supported ciphers are assumed to be enabled. NOT Used in PE -
setSsl2Ciphers
-
getSsl2Enabled
String getSsl2Enabled()Determines whether SSL2 is enabled. NOT Used in PE. SSL2 is not supported by either iiop or web-services. When this element is used as a child of the iiop-listener element then the only allowed value for this attribute is "false". -
setSsl2Enabled
-
getSsl3Enabled
String getSsl3Enabled()Determines whether SSL3 is enabled. If both SSL2 and SSL3 are enabled for a virtual server, the server tries SSL3 encryption first. If that fails, the server tries SSL2 encryption. -
setSsl3Enabled
-
getSsl3TlsCiphers
String getSsl3TlsCiphers()A comma-separated list of the SSL3 ciphers used, with the prefix + to enable or - to disable, for example +SSL_RSA_WITH_RC4_128_MD5. Allowed SSL3/TLS values are those that are supported by the JVM for the given security provider and security service configuration. If no value is specified, all supported ciphers are assumed to be enabled. -
setSsl3TlsCiphers
-
getTlsEnabled
String getTlsEnabled()Determines whether TLS is enabled. -
setTlsEnabled
-
getTls11Enabled
String getTls11Enabled()Determines whether TLS 1.1 is enabled. -
setTls11Enabled
-
getTls12Enabled
String getTls12Enabled()Determines whether TLS 1.2 is enabled. -
setTls12Enabled
-
getTls13Enabled
String getTls13Enabled()Determines whether TLS 1.3 is enabled. -
setTls13Enabled
-
getTlsRollbackEnabled
String getTlsRollbackEnabled()Determines whether TLS rollback is enabled. TLS rollback should be enabled for Microsoft Internet Explorer 5.0 and 5.5. NOT Used in PE -
setTlsRollbackEnabled
-
getTrustAlgorithm
String getTrustAlgorithm() -
setTrustAlgorithm
-
getTrustMaxCertLength
String getTrustMaxCertLength() -
setTrustMaxCertLength
-
getTrustStore
String getTrustStore() -
setTrustStore
-
getTrustStoreType
@Pattern(regexp="(JKS|NSS)", message="Valid values: (JKS|NSS)") @Pattern(regexp="(JKS|NSS)",message="Valid values: (JKS|NSS)") String getTrustStoreType()type of the truststore file -
setTrustStoreType
-
getTrustStorePasswordProvider
String getTrustStorePasswordProvider() -
setTrustStorePasswordProvider
-
getTrustStorePassword
String getTrustStorePassword()password of the truststore file -
setTrustStorePassword
-
getAllowLazyInit
String getAllowLazyInit()Does SSL configuration allow implementation to initialize it lazily way -
setAllowLazyInit
-
getSSLInactivityTimeout
String getSSLInactivityTimeout()- Returns:
- the timeout within which there must be activity from the client. Defaults to 30 seconds.
-
setSSLInactivityTimeout
void setSSLInactivityTimeout(int handshakeTimeout) -
getRenegotiateOnClientAuthWant
String getRenegotiateOnClientAuthWant()Determines whether or not ssl session renegotiation will occur if client-auth is set to want. This may be set to
falseunder the assumption that if a certificate wasn't available during the initial handshake, it won't be available during a renegotiation.This configuration option defaults to
true.- Returns:
trueif ssl session renegotiation will occur if client-auth is want.- Since:
- 2.1.2
-
setRenegotiateOnClientAuthWant
void setRenegotiateOnClientAuthWant(boolean renegotiateClientAuthWant) - Since:
- 2.1.2
-
getHandshakeTimeoutMillis
String getHandshakeTimeoutMillis()Handshake mode -
setHandshakeTimeoutMillis
-