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 algorithmStringgetCertNickname()Gets the nickname of the server certificate in the certificate databaseintgetHandshakeTimeout()Gets the timeout within which there must be activity from the clientchar[]getKeyPassword()Gets the password of the keystore fileStringgetKeyStore()Gets the location of the keystore filechar[]getTrustPassword()Gets the password of the truststore fileStringgetTrustStore()Gets the truststore file locationvoidsetAlgorithms(Set<SslType> algorithms)Sets the algorithmvoidsetCertNickname(String value)Sets the certNicknamevoidsetHandshakeTimeout(int timeoutMilliSeconds)Sets the timeout within which there must be activity from the clientvoidsetKeyPassword(char[] keyPassword)Sets the password of the keystore filevoidsetKeyStore(String keyStore)Sets the location of the keystore filevoidsetTrustPassword(char[] trustPassword)Sets the password of the truststore filevoidsetTrustStore(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
-
-