|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SslDomain
I store the details used to create SSL sessions.
| Nested Class Summary | |
|---|---|
static class |
SslDomain.Mode
Determines whether the endpoint acts as a client or server. |
static class |
SslDomain.VerifyMode
Determines the level of peer validation. |
| Method Summary | |
|---|---|
boolean |
allowUnsecuredClient()
|
void |
allowUnsecuredClient(boolean allowUnsecured)
Permit a server to accept connection requests from non-SSL clients. |
String |
getCertificateFile()
|
SslDomain.Mode |
getMode()
|
SslDomain.VerifyMode |
getPeerAuthentication()
|
String |
getPrivateKeyFile()
|
String |
getPrivateKeyPassword()
|
String |
getTrustedCaDb()
|
void |
init(SslDomain.Mode mode)
Initialize the ssl domain object. |
void |
setCredentials(String certificateFile,
String privateKeyFile,
String password)
Set the certificate that identifies the local node to the remote. |
void |
setPeerAuthentication(SslDomain.VerifyMode mode)
Configure the level of verification used on the peer certificate. |
void |
setTrustedCaDb(String certificateDb)
Configure the set of trusted CA certificates used by this node to verify peers. |
| Method Detail |
|---|
void init(SslDomain.Mode mode)
SslDomain.Mode getMode()
void setCredentials(String certificateFile,
String privateKeyFile,
String password)
certificateFile - path to file/database containing the identifying
certificate.privateKeyFile - path to file/database containing the private key used to
sign the certificatepassword - the password used to sign the key, else null if key is not
protected.String getPrivateKeyFile()
String getPrivateKeyPassword()
String getCertificateFile()
void setTrustedCaDb(String certificateDb)
certificateDb - database of trusted CAs, used to authenticate the peer.String getTrustedCaDb()
void setPeerAuthentication(SslDomain.VerifyMode mode)
SslDomain.VerifyMode.ANONYMOUS_PEER).
Once certificates and trusted CAs are configured, peer verification can be enabled.
In order to verify a peer, a trusted CA must be configured. See
setTrustedCaDb(String).
mode - the level of validation to apply to the peerSslDomain.VerifyMode getPeerAuthentication()
void allowUnsecuredClient(boolean allowUnsecured)
boolean allowUnsecuredClient()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||