edu.vt.middleware.ldap.ssl
public class X509CredentialConfig extends java.lang.Object implements CredentialConfig
X509CredentialReader.| Modifier and Type | Field and Description |
|---|---|
protected X509CertificateCredentialReader |
certReader
Reads X.509 certificate credential.
|
protected X509CertificatesCredentialReader |
certsReader
Reads X.509 certificates credential.
|
protected PrivateKeyCredentialReader |
keyReader
Reads private key credential.
|
| Constructor and Description |
|---|
X509CredentialConfig() |
| Modifier and Type | Method and Description |
|---|---|
SSLContextInitializer |
createSSLContextInitializer()
Creates an
SSLContextInitializer using the configured trust
and authentication material in this config. |
java.lang.String |
getAuthenticationCertificate()
This returns the name of the authentication certificate to use.
|
java.lang.String |
getAuthenticationKey()
This returns the name of the authentication key to use.
|
java.lang.String |
getTrustCertificates()
This returns the name of the trust certificates to use.
|
void |
setAuthenticationCertificate(java.lang.String s)
This sets the name of the authentication certificate to use.
|
void |
setAuthenticationKey(java.lang.String s)
This sets the name of the authentication key to use.
|
void |
setTrustCertificates(java.lang.String s)
This sets the name of the trust certificates to use.
|
protected X509CertificatesCredentialReader certsReader
protected X509CertificateCredentialReader certReader
protected PrivateKeyCredentialReader keyReader
public java.lang.String getTrustCertificates()
String trust certificates namepublic void setTrustCertificates(java.lang.String s)
s - String trust certificates namepublic java.lang.String getAuthenticationCertificate()
String authentication certificate namepublic void setAuthenticationCertificate(java.lang.String s)
s - String authentication certificate namepublic java.lang.String getAuthenticationKey()
String authentication key namepublic void setAuthenticationKey(java.lang.String s)
s - String authentication key namepublic SSLContextInitializer createSSLContextInitializer() throws java.security.GeneralSecurityException
SSLContextInitializer using the configured trust
and authentication material in this config.createSSLContextInitializer in interface CredentialConfigSSLContextInitializerjava.security.GeneralSecurityException - if the ssl context initializer cannot be
createdCopyright © 2014. All Rights Reserved.