|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer
edu.vt.middleware.ldap.ssl.X509SSLContextInitializer
public class X509SSLContextInitializer
Provides a SSLContextInitializer which can use X509 certificates
to create key and trust managers.
| Field Summary |
|---|
| Fields inherited from class edu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer |
|---|
logger |
| Constructor Summary | |
|---|---|
X509SSLContextInitializer()
|
|
| Method Summary | |
|---|---|
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. |
TrustManager[] |
getTrustManagers()
Returns the trust managers used when creating SSL contexts. |
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. |
| Methods inherited from class edu.vt.middleware.ldap.ssl.AbstractSSLContextInitializer |
|---|
initSSLContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public X509SSLContextInitializer()
| Method Detail |
|---|
public X509Certificate[] getTrustCertificates()
X509Certificates[]public void setTrustCertificates(X509Certificate[] certs)
certs - X509Certificates[]public X509Certificate getAuthenticationCertificate()
X509Certificatepublic void setAuthenticationCertificate(X509Certificate cert)
cert - X509Certificatepublic PrivateKey getAuthenticationKey()
PrivateKeypublic void setAuthenticationKey(PrivateKey key)
key - PrivateKey
public TrustManager[] getTrustManagers()
throws GeneralSecurityException
getTrustManagers in interface SSLContextInitializergetTrustManagers in class AbstractSSLContextInitializerTrustManager[]
GeneralSecurityException - if an errors occurs while loading the
TrustManagers
public KeyManager[] getKeyManagers()
throws GeneralSecurityException
getKeyManagers in interface SSLContextInitializergetKeyManagers in class AbstractSSLContextInitializerKeyManagers[]
GeneralSecurityException - if an errors occurs while loading the
KeyManagers
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||