|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.ssl.X509CredentialConfig
public class X509CredentialConfig
Provides the properties necessary for creating an SSL context initializer
with a X509CredentialReader.
| Field Summary | |
|---|---|
protected X509CertificateCredentialReader |
certReader
Reads X.509 certificate credential. |
protected X509CertificatesCredentialReader |
certsReader
Reads X.509 certificates credential. |
protected PrivateKeyCredentialReader |
keyReader
Reads private key credential. |
| Constructor Summary | |
|---|---|
X509CredentialConfig()
|
|
| Method Summary | |
|---|---|
SSLContextInitializer |
createSSLContextInitializer()
Creates an SSLContextInitializer using the configured trust
and authentication material in this config. |
String |
getAuthenticationCertificate()
This returns the name of the authentication certificate to use. |
String |
getAuthenticationKey()
This returns the name of the authentication key to use. |
String |
getTrustCertificates()
This returns the name of the trust certificates to use. |
void |
setAuthenticationCertificate(String s)
This sets the name of the authentication certificate to use. |
void |
setAuthenticationKey(String s)
This sets the name of the authentication key to use. |
void |
setTrustCertificates(String s)
This sets the name of the trust certificates to use. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected X509CertificatesCredentialReader certsReader
protected X509CertificateCredentialReader certReader
protected PrivateKeyCredentialReader keyReader
| Constructor Detail |
|---|
public X509CredentialConfig()
| Method Detail |
|---|
public String getTrustCertificates()
String trust certificates namepublic void setTrustCertificates(String s)
s - String trust certificates namepublic String getAuthenticationCertificate()
String authentication certificate namepublic void setAuthenticationCertificate(String s)
s - String authentication certificate namepublic String getAuthenticationKey()
String authentication key namepublic void setAuthenticationKey(String s)
s - String authentication key name
public SSLContextInitializer createSSLContextInitializer()
throws GeneralSecurityException
SSLContextInitializer using the configured trust
and authentication material in this config.
createSSLContextInitializer in interface CredentialConfigSSLContextInitializer
GeneralSecurityException - if the ssl context initializer cannot be
created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||