directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1072222 - in /directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras: ExtrasBundleActivator.java extended/CertGenerationRequest.java extended/ads_impl/CertGenerationExtendedOpFactory.java
Date Sat, 19 Feb 2011 00:56:47 GMT
Author: akarasulu
Date: Sat Feb 19 00:56:47 2011
New Revision: 1072222

URL: http://svn.apache.org/viewvc?rev=1072222&view=rev
Log:
DIRSHARED-86: adding extras CertGeneration extended operation factory

Added:
    directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CertGenerationExtendedOpFactory.java
Modified:
    directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
    directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CertGenerationRequest.java

Modified: directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java?rev=1072222&r1=1072221&r2=1072222&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
(original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/ExtrasBundleActivator.java
Sat Feb 19 00:56:47 2011
@@ -30,6 +30,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncRequestValueFactory;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory;
 import org.apache.directory.shared.ldap.extras.extended.ads_impl.CancelExtendedOpFactory;
+import org.apache.directory.shared.ldap.extras.extended.ads_impl.CertGenerationExtendedOpFactory;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.ServiceReference;
@@ -93,6 +94,9 @@ public class ExtrasBundleActivator imple
     {
         ExtendedOpFactory<?> factory = new CancelExtendedOpFactory();
         codec.registerExtendedOp( factory );
+        
+        factory = new CertGenerationExtendedOpFactory();
+        codec.registerExtendedOp( factory );
     }
     
     

Modified: directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CertGenerationRequest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CertGenerationRequest.java?rev=1072222&r1=1072221&r2=1072222&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CertGenerationRequest.java
(original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/CertGenerationRequest.java
Sat Feb 19 00:56:47 2011
@@ -54,7 +54,6 @@ public class CertGenerationRequest exten
 
 
     /**
-     * 
      * Creates a new instance of CertGenerationRequest.
      *
      * @param messageId the message id
@@ -76,6 +75,16 @@ public class CertGenerationRequest exten
     }
 
 
+    /**
+     * Creates a new instance of CertGenerationRequest.
+     */
+    public CertGenerationRequest()
+    {
+        setRequestName( EXTENSION_OID );
+        this.certGenObj = new CertGenerationObject();
+    }
+
+
     public void setequestValue( byte[] requestValue )
     {
         CertGenerationDecoder decoder = new CertGenerationDecoder();
@@ -195,5 +204,4 @@ public class CertGenerationRequest exten
     {
         certGenObj.setKeyAlgorithm( keyAlgorithm );
     }
-
 }

Added: directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CertGenerationExtendedOpFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CertGenerationExtendedOpFactory.java?rev=1072222&view=auto
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CertGenerationExtendedOpFactory.java
(added)
+++ directory/shared/branches/m1/ldap-extras/codec/src/main/java/org/apache/directory/shared/ldap/extras/extended/ads_impl/CertGenerationExtendedOpFactory.java
Sat Feb 19 00:56:47 2011
@@ -0,0 +1,51 @@
+/*
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you under the Apache License, Version 2.0 (the
+ *   "License"); you may not use this file except in compliance
+ *   with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing,
+ *   software distributed under the License is distributed on an
+ *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *   KIND, either express or implied.  See the License for the
+ *   specific language governing permissions and limitations
+ *   under the License.
+ *
+ */
+package org.apache.directory.shared.ldap.extras.extended.ads_impl;
+
+
+import org.apache.directory.shared.ldap.codec.api.ExtendedOpFactory;
+import org.apache.directory.shared.ldap.extras.extended.CertGenerationRequest;
+
+
+/**
+ * An {@link ExtendedOpFactory} for creating cancel extended request response 
+ * pairs.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class CertGenerationExtendedOpFactory implements ExtendedOpFactory<CertGenerationRequest>
+{
+    /**
+     * {@inheritDoc}
+     */
+    public String getOid()
+    {
+        return CertGenerationRequest.EXTENSION_OID;
+    }
+
+    
+    /**
+     * {@inheritDoc}
+     */
+    public CertGenerationRequest newRequest()
+    {
+        return new CertGenerationRequest();
+    }
+}



Mime
View raw message