Class SslConfig
- java.lang.Object
-
- org.glassfish.embeddable.web.config.SslConfig
-
public class SslConfig extends Object
Class used to configure SSL processing parameters- Author:
- Rajiv Mordani
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<SslType>
getAlgorithms()
Sets the algorithmString
getCertNickname()
Gets the nickname of the server certificate in the certificate databaseint
getHandshakeTimeout()
Gets the timeout within which there must be activity from the clientchar[]
getKeyPassword()
Gets the password of the keystore fileString
getKeyStore()
Gets the location of the keystore filechar[]
getTrustPassword()
Gets the password of the truststore fileString
getTrustStore()
Gets the truststore file locationvoid
setAlgorithms(Set<SslType> algorithms)
Sets the algorithmvoid
setCertNickname(String value)
Sets the certNicknamevoid
setHandshakeTimeout(int timeoutMilliSeconds)
Sets the timeout within which there must be activity from the clientvoid
setKeyPassword(char[] keyPassword)
Sets the password of the keystore filevoid
setKeyStore(String keyStore)
Sets the location of the keystore filevoid
setTrustPassword(char[] trustPassword)
Sets the password of the truststore filevoid
setTrustStore(String trustStore)
Sets the location of the truststore file
-
-
-
Method Detail
-
setKeyStore
public void setKeyStore(String keyStore)
Sets the location of the keystore file- Parameters:
keyStore
- The location of the keystore file
-
setTrustStore
public void setTrustStore(String trustStore)
Sets the location of the truststore file- Parameters:
trustStore
- The location of the truststore file
-
setKeyPassword
public void setKeyPassword(char[] keyPassword)
Sets the password of the keystore file- Parameters:
keyPassword
- The password of the keystore file
-
setTrustPassword
public void setTrustPassword(char[] trustPassword)
Sets the password of the truststore file- Parameters:
trustPassword
- The password of the truststore file
-
setHandshakeTimeout
public void setHandshakeTimeout(int timeoutMilliSeconds)
Sets the timeout within which there must be activity from the client- Parameters:
timeoutMilliSeconds
- The timeout in milliseconds
-
setAlgorithms
public void setAlgorithms(Set<SslType> algorithms)
Sets the algorithm- Parameters:
algorithms
-
-
getKeyStore
public String getKeyStore()
Gets the location of the keystore file- Returns:
- the location of the keystore file
-
getTrustStore
public String getTrustStore()
Gets the truststore file location- Returns:
- the location of the truststore file
-
getKeyPassword
public char[] getKeyPassword()
Gets the password of the keystore file- Returns:
- the password of the keystore file
-
getTrustPassword
public char[] getTrustPassword()
Gets the password of the truststore file- Returns:
- the password of the truststore file
-
getHandshakeTimeout
public int getHandshakeTimeout()
Gets the timeout within which there must be activity from the client- Returns:
- the timeout in milliseconds
-
getCertNickname
public String getCertNickname()
Gets the nickname of the server certificate in the certificate database- Returns:
- the certNickname
-
setCertNickname
public void setCertNickname(String value)
Sets the certNickname
-
-