org.ldaptive.ssl
Class X509CredentialConfig

java.lang.Object
  extended by org.ldaptive.ssl.X509CredentialConfig
All Implemented Interfaces:
CredentialConfig

public class X509CredentialConfig
extends Object
implements CredentialConfig

Provides the properties necessary for creating an SSL context initializer with an X.509 credential reader.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
X509CredentialConfig()
           
 
Method Summary
 SSLContextInitializer createSSLContextInitializer()
          Creates an SSL context initializer using the configured trust and authentication material in this config.
 boolean equals(Object o)
          
 String getAuthenticationCertificate()
          Returns the name of the authentication certificate to use.
 String getAuthenticationKey()
          Returns the name of the authentication key to use.
 String getTrustCertificates()
          Returns the name of the trust certificates to use.
 int hashCode()
          
 void setAuthenticationCertificate(String name)
          Sets the name of the authentication certificate to use.
 void setAuthenticationKey(String name)
          Sets the name of the authentication key to use.
 void setTrustCertificates(String name)
          Sets the name of the trust certificates to use.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

X509CredentialConfig

public X509CredentialConfig()
Method Detail

getTrustCertificates

public String getTrustCertificates()
Returns the name of the trust certificates to use.

Returns:
trust certificates name

setTrustCertificates

public void setTrustCertificates(String name)
Sets the name of the trust certificates to use.

Parameters:
name - trust certificates name

getAuthenticationCertificate

public String getAuthenticationCertificate()
Returns the name of the authentication certificate to use.

Returns:
authentication certificate name

setAuthenticationCertificate

public void setAuthenticationCertificate(String name)
Sets the name of the authentication certificate to use.

Parameters:
name - authentication certificate name

getAuthenticationKey

public String getAuthenticationKey()
Returns the name of the authentication key to use.

Returns:
authentication key name

setAuthenticationKey

public void setAuthenticationKey(String name)
Sets the name of the authentication key to use.

Parameters:
name - authentication key name

createSSLContextInitializer

public SSLContextInitializer createSSLContextInitializer()
                                                  throws GeneralSecurityException
Creates an SSL context initializer using the configured trust and authentication material in this config.

Specified by:
createSSLContextInitializer in interface CredentialConfig
Returns:
SSL context initializer
Throws:
GeneralSecurityException - if the ssl context initializer cannot be created

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.