at.knowcenter.wag.egov.egiz.ldap.client
Class LDAPClientImpl

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.ldap.client.LDAPClientImpl
All Implemented Interfaces:
LDAPClient

public final class LDAPClientImpl
extends Object
implements LDAPClient


Field Summary
protected static String DEFAULT_LDAP_ATTR_SERIAL_NUMBER
           
 
Constructor Summary
protected LDAPClientImpl()
           
protected LDAPClientImpl(LDAPMapping ldapMapping)
           
protected LDAPClientImpl(String urlString)
           
protected LDAPClientImpl(URL url)
           
 
Method Summary
 String getSerialNumberAttrName()
          Returns the attribute name that represents the serial number.
 URL getUrl()
          Returns the ldap url this client was registered for.
 iaik.x509.X509Certificate retrieveCertificate(BigInteger serialNumber)
          Retriebes the certificate with the serial number serialNumber.
 iaik.x509.X509Certificate[] retrieveCertificates(String filter)
          Retrieves the certificate(s) matching the filter filter.
 void setSerialNumberAttrName(String serialNumberAttrName)
          Sets the attribute name that represents the serial number.
 void setUrl(URL ldapURL)
          Sets the ldap url this client should be registered for.
 String toString()
           
 void validateData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_LDAP_ATTR_SERIAL_NUMBER

protected static final String DEFAULT_LDAP_ATTR_SERIAL_NUMBER
See Also:
Constant Field Values
Constructor Detail

LDAPClientImpl

protected LDAPClientImpl()

LDAPClientImpl

protected LDAPClientImpl(URL url)

LDAPClientImpl

protected LDAPClientImpl(String urlString)
                  throws LDAPException
Throws:
LDAPException

LDAPClientImpl

protected LDAPClientImpl(LDAPMapping ldapMapping)
Method Detail

getUrl

public URL getUrl()
Description copied from interface: LDAPClient
Returns the ldap url this client was registered for.

Specified by:
getUrl in interface LDAPClient
Returns:
The ldap url linked with this client.

setUrl

public void setUrl(URL ldapURL)
Description copied from interface: LDAPClient
Sets the ldap url this client should be registered for.

Specified by:
setUrl in interface LDAPClient
Parameters:
ldapURL - The ldap url linked with this client.

getSerialNumberAttrName

public String getSerialNumberAttrName()
Description copied from interface: LDAPClient
Returns the attribute name that represents the serial number.

Specified by:
getSerialNumberAttrName in interface LDAPClient
Returns:
The attribute name representing the serial number.

setSerialNumberAttrName

public void setSerialNumberAttrName(String serialNumberAttrName)
Description copied from interface: LDAPClient
Sets the attribute name that represents the serial number.

Specified by:
setSerialNumberAttrName in interface LDAPClient
Parameters:
serialNumberAttrName - The attribute name representing the serial number.

retrieveCertificates

public iaik.x509.X509Certificate[] retrieveCertificates(String filter)
                                                 throws LDAPException
Description copied from interface: LDAPClient
Retrieves the certificate(s) matching the filter filter.

Specified by:
retrieveCertificates in interface LDAPClient
Parameters:
filter - The filter for the ldap request.
Returns:
An array of certificates matching the filter filter.
Throws:
LDAPException - Is thrown in case of error.

retrieveCertificate

public iaik.x509.X509Certificate retrieveCertificate(BigInteger serialNumber)
                                              throws LDAPException
Description copied from interface: LDAPClient
Retriebes the certificate with the serial number serialNumber.

Specified by:
retrieveCertificate in interface LDAPClient
Parameters:
serialNumber - The serial number of the required certificate.
Returns:
The certificate with the serial number serialNumber.
Throws:
LDAPException - Is thrown in case of error.

validateData

public void validateData()
                  throws LDAPException
Throws:
LDAPException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.