|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.ssl.AbstractSSLContextInitializer
org.ldaptive.ssl.X509SSLContextInitializer
public class X509SSLContextInitializer
Provides an SSL context initializer which can use X.509 certificates to create key and trust managers.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.ssl.AbstractSSLContextInitializer |
|---|
logger, trustManagers |
| Constructor Summary | |
|---|---|
X509SSLContextInitializer()
|
|
| Method Summary | |
|---|---|
protected TrustManager[] |
createTrustManagers()
Creates any trust managers specific to this context initializer. |
X509Certificate |
getAuthenticationCertificate()
Returns the certificate to use for creating the key managers. |
PrivateKey |
getAuthenticationKey()
Returns the private key associated with the authentication certificate. |
KeyManager[] |
getKeyManagers()
Returns the key managers used when creating SSL contexts. |
X509Certificate[] |
getTrustCertificates()
Returns the certificates to use for creating the trust managers. |
void |
setAuthenticationCertificate(X509Certificate cert)
Sets the certificate to use for creating the key managers. |
void |
setAuthenticationKey(PrivateKey key)
Sets the private key associated with the authentication certificate. |
void |
setTrustCertificates(X509Certificate... certs)
Sets the certificates to use for creating the trust managers. |
String |
toString()
|
| Methods inherited from class org.ldaptive.ssl.AbstractSSLContextInitializer |
|---|
aggregateTrustManagers, getTrustManagers, initSSLContext, setTrustManagers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public X509SSLContextInitializer()
| Method Detail |
|---|
public X509Certificate[] getTrustCertificates()
public void setTrustCertificates(X509Certificate... certs)
certs - X.509 certificatespublic X509Certificate getAuthenticationCertificate()
public void setAuthenticationCertificate(X509Certificate cert)
cert - X.509 certificatepublic PrivateKey getAuthenticationKey()
public void setAuthenticationKey(PrivateKey key)
key - private key
protected TrustManager[] createTrustManagers()
throws GeneralSecurityException
createTrustManagers in class AbstractSSLContextInitializerGeneralSecurityException - if an errors occurs while loading the
TrustManagers
public KeyManager[] getKeyManagers()
throws GeneralSecurityException
GeneralSecurityException - if an errors occurs while loading the
KeyManagerspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||