org.apache.directory.server.ldap.handlers.extended
Class CertGenerationRequestHandler

java.lang.Object
  extended by org.apache.directory.server.ldap.handlers.extended.CertGenerationRequestHandler
All Implemented Interfaces:
ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.CertGenerationRequest,org.apache.directory.api.ldap.extras.extended.CertGenerationResponse>

public class CertGenerationRequestHandler
extends Object
implements ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.CertGenerationRequest,org.apache.directory.api.ldap.extras.extended.CertGenerationResponse>

An extended handler for digital certificate generation

Author:
Apache Directory Project

Constructor Summary
CertGenerationRequestHandler()
           
 
Method Summary
 Set<String> getExtensionOids()
          The OIDs of the extensions supported by this handler.
 String getOid()
          Returns the EXTENSION_OID of the extended request this handler can handle.
 void handleExtendedOperation(LdapSession session, org.apache.directory.api.ldap.extras.extended.CertGenerationRequest req)
          Handles the specified extended operation.
 void setLdapServer(LdapServer ldapServer)
          Sets the LDAP server for this extendedOperation handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertGenerationRequestHandler

public CertGenerationRequestHandler()
Method Detail

getOid

public String getOid()
Returns the EXTENSION_OID of the extended request this handler can handle.

Specified by:
getOid in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.CertGenerationRequest,org.apache.directory.api.ldap.extras.extended.CertGenerationResponse>

getExtensionOids

public Set<String> getExtensionOids()
The OIDs of the extensions supported by this handler. This includes the request as well as any responses associated with the request. These OIDs will be registered with the server to publish them as supportedExtensions.

Specified by:
getExtensionOids in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.CertGenerationRequest,org.apache.directory.api.ldap.extras.extended.CertGenerationResponse>
Returns:
the OIDs supported by this handler.

handleExtendedOperation

public void handleExtendedOperation(LdapSession session,
                                    org.apache.directory.api.ldap.extras.extended.CertGenerationRequest req)
                             throws Exception
Handles the specified extended operation.

Specified by:
handleExtendedOperation in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.CertGenerationRequest,org.apache.directory.api.ldap.extras.extended.CertGenerationResponse>
Parameters:
session - the session object related with current connection
req - the LDAP Extended operation request
Throws:
Exception - if failed to handle the operation

setLdapServer

public void setLdapServer(LdapServer ldapServer)
Sets the LDAP server for this extendedOperation handler.

Specified by:
setLdapServer in interface ExtendedOperationHandler<org.apache.directory.api.ldap.extras.extended.CertGenerationRequest,org.apache.directory.api.ldap.extras.extended.CertGenerationResponse>
Parameters:
ldapServer - the ldap protocol server


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.