directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1235364 [16/27] - in /directory/shared/trunk: asn1/api/src/main/java/org/apache/directory/shared/asn1/util/ asn1/api/src/test/java/org/apache/directory/shared/asn1/util/ asn1/ber/src/main/java/org/apache/directory/shared/asn1/actions/ asn1...
Date Tue, 24 Jan 2012 17:27:12 GMT
Modified: directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java
(original)
+++ directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java
Tue Jan 24 17:27:00 2012
@@ -66,25 +66,32 @@ public class ModifyDNResponseTest extend
 
         stream.put( new byte[]
             { 0x30, 0x0C, // LDAPMessage ::=SEQUENCE {
-                0x02, 0x01, 0x01, // messageID MessageID
-                0x6D, 0x07, // CHOICE { ..., modifyDNResponse ModifyDNResponse,
+                0x02,
+                0x01,
+                0x01, // messageID MessageID
+                0x6D,
+                0x07, // CHOICE { ..., modifyDNResponse ModifyDNResponse,
                 // ...
                 // ModifyDNResponse ::= [APPLICATION 13] LDAPResult
-                0x0A, 0x01, 0x00, // LDAPResult ::= SEQUENCE {
+                0x0A,
+                0x01,
+                0x00, // LDAPResult ::= SEQUENCE {
                 // resultCode ENUMERATED {
                 // success (0), ...
                 // },
-                0x04, 0x00, // matchedDN LDAPDN,
-                0x04, 0x00 // errorMessage LDAPString,
+                0x04,
+                0x00, // matchedDN LDAPDN,
+                0x04,
+                0x00 // errorMessage LDAPString,
             // referral [3] Referral OPTIONAL }
             // }
-            } );
+        } );
 
-        String decodedPdu = Strings.dumpBytes(stream.array());
+        String decodedPdu = Strings.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<ModifyDnResponseDecorator> ldapMessageContainer = 
+        LdapMessageContainer<ModifyDnResponseDecorator> ldapMessageContainer =
             new LdapMessageContainer<ModifyDnResponseDecorator>( codec );
 
         // Decode the ModifyDNResponse PDU
@@ -114,7 +121,7 @@ public class ModifyDNResponseTest extend
             // Check the length
             assertEquals( 0x0E, bb.limit() );
 
-            String encodedPdu = Strings.dumpBytes(bb.array());
+            String encodedPdu = Strings.dumpBytes( bb.array() );
 
             assertEquals( encodedPdu, decodedPdu );
         }
@@ -160,14 +167,39 @@ public class ModifyDNResponseTest extend
                 // }
                 ( byte ) 0xA0,
                 0x1B, // A control
-                0x30, 0x19, 0x04, 0x17, 0x32, 0x2E, 0x31, 0x36, 0x2E, 0x38, 0x34, 0x30, 0x2E,
0x31, 0x2E, 0x31, 0x31,
-                0x33, 0x37, 0x33, 0x30, 0x2E, 0x33, 0x2E, 0x34, 0x2E, 0x32 } );
+                0x30,
+                0x19,
+                0x04,
+                0x17,
+                0x32,
+                0x2E,
+                0x31,
+                0x36,
+                0x2E,
+                0x38,
+                0x34,
+                0x30,
+                0x2E,
+                0x31,
+                0x2E,
+                0x31,
+                0x31,
+                0x33,
+                0x37,
+                0x33,
+                0x30,
+                0x2E,
+                0x33,
+                0x2E,
+                0x34,
+                0x2E,
+                0x32 } );
 
-        String decodedPdu = Strings.dumpBytes(stream.array());
+        String decodedPdu = Strings.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<ModifyDnResponseDecorator> ldapMessageContainer = 
+        LdapMessageContainer<ModifyDnResponseDecorator> ldapMessageContainer =
             new LdapMessageContainer<ModifyDnResponseDecorator>( codec );
 
         // Decode the ModifyDNResponse PDU
@@ -195,9 +227,10 @@ public class ModifyDNResponseTest extend
         assertEquals( 1, controls.size() );
 
         @SuppressWarnings("unchecked")
-        CodecControl<Control> control = (org.apache.directory.shared.ldap.codec.api.CodecControl<Control>
)controls.get( "2.16.840.1.113730.3.4.2" );
+        CodecControl<Control> control = ( org.apache.directory.shared.ldap.codec.api.CodecControl<Control>
) controls
+            .get( "2.16.840.1.113730.3.4.2" );
         assertEquals( "2.16.840.1.113730.3.4.2", control.getOid() );
-        assertEquals( "", Strings.dumpBytes((byte[]) control.getValue()) );
+        assertEquals( "", Strings.dumpBytes( ( byte[] ) control.getValue() ) );
 
         // Check the encoding
         try
@@ -207,7 +240,7 @@ public class ModifyDNResponseTest extend
             // Check the length
             assertEquals( 0x2B, bb.limit() );
 
-            String encodedPdu = Strings.dumpBytes(bb.array());
+            String encodedPdu = Strings.dumpBytes( bb.array() );
 
             assertEquals( encodedPdu, decodedPdu );
         }
@@ -231,15 +264,18 @@ public class ModifyDNResponseTest extend
 
         stream.put( new byte[]
             { 0x30, 0x05, // LDAPMessage ::=SEQUENCE {
-                0x02, 0x01, 0x01, // messageID MessageID
-                0x6D, 0x00 // CHOICE { ..., modifyDNResponse ModifyDNResponse,
+                0x02,
+                0x01,
+                0x01, // messageID MessageID
+                0x6D,
+                0x00 // CHOICE { ..., modifyDNResponse ModifyDNResponse,
             // ...
-            } );
+        } );
 
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<ModifyDnResponseDecorator> ldapMessageContainer = 
+        LdapMessageContainer<ModifyDnResponseDecorator> ldapMessageContainer =
             new LdapMessageContainer<ModifyDnResponseDecorator>( codec );
 
         // Decode a ModifyDNResponse message

Modified: directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
(original)
+++ directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/osgi/AbstractCodecServiceTest.java
Tue Jan 24 17:27:00 2012
@@ -57,14 +57,14 @@ public abstract class AbstractCodecServi
             {
                 return null;
             }
-            
+
+
             public ProtocolDecoder getDecoder( IoSession session ) throws Exception
             {
                 return null;
             }
-        });
-        
-        
+        } );
+
         if ( LdapApiServiceFactory.isInitialized() == false )
         {
             LdapApiServiceFactory.initialize( codec );

Modified: directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java?rev=1235364&r1=1235363&r2=1235364&view=diff
==============================================================================
--- directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
(original)
+++ directory/shared/trunk/ldap/codec/core/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
Tue Jan 24 17:27:00 2012
@@ -118,7 +118,14 @@ public class SearchRequestMatchingRuleAs
                 // SearchRequest ::= [APPLICATION 3] SEQUENCE {
                 0x04,
                 0x11, //   baseObject      LDAPDN, (dc=example,dc=com)
-                'd', 'c', '=', 'e', 'x', 'a', 'm', 'p',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
                 'l',
                 'e',
                 ',',
@@ -154,24 +161,67 @@ public class SearchRequestMatchingRuleAs
                 // MatchingRuleAssertion ::= SEQUENCE {
                 ( byte ) 0x81,
                 0x02, //   matchingRule    [1] MatchingRuleId OPTIONAL,
-                'c', 'n',
+                'c',
+                'n',
                 ( byte ) 0x82,
                 0x13, //    type            [2] AttributeDescription OPTIONAL,
-                '1', '.', '2', '.', '8', '4', '0', '.', '4', '8', '0', '1', '8', '.', '1',
'.', '2', '.', '2',
+                '1',
+                '.',
+                '2',
+                '.',
+                '8',
+                '4',
+                '0',
+                '.',
+                '4',
+                '8',
+                '0',
+                '1',
+                '8',
+                '.',
+                '1',
+                '.',
+                '2',
+                '.',
+                '2',
                 ( byte ) 0x83,
                 0x03, //    matchValue      [3] AssertionValue,
-                'a', 'o', 'k',
+                'a',
+                'o',
+                'k',
                 //    dnAttributes    [4] BOOLEAN DEFAULT FALSE  }
-                ( byte ) 0x84, 0x01, ( byte ) 0xFF, 0x30,
+                ( byte ) 0x84,
+                0x01,
+                ( byte ) 0xFF,
+                0x30,
                 0x15, // attributes      AttributeDescriptionList }
-                0x04, 0x05, 'a', 't', 't', 'r', '0', 0x04, 0x05, 'a', 't', 't', 'r', '1',
0x04, 0x05, 'a', 't', 't',
-                'r', '2' } );
+                0x04,
+                0x05,
+                'a',
+                't',
+                't',
+                'r',
+                '0',
+                0x04,
+                0x05,
+                'a',
+                't',
+                't',
+                'r',
+                '1',
+                0x04,
+                0x05,
+                'a',
+                't',
+                't',
+                'r',
+                '2' } );
 
-        String decodedPdu = Strings.dumpBytes(stream.array());
+        String decodedPdu = Strings.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         try
@@ -212,7 +262,7 @@ public class SearchRequestMatchingRuleAs
             // Check the length
             assertEquals( 0x63, bb.limit() );
 
-            String encodedPdu = Strings.dumpBytes(bb.array());
+            String encodedPdu = Strings.dumpBytes( bb.array() );
 
             assertEquals( encodedPdu.substring( 0, 0x56 ), decodedPdu.substring( 0, 0x56
) );
         }
@@ -236,10 +286,60 @@ public class SearchRequestMatchingRuleAs
                 0x04, // messageID
                 0x63,
                 0x36, // baseObject LDAPDN,
-                0x04, 0x1F, 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u',
',', 'd', 'c', '=', 'e',
-                'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01,
0x01, 0x0A, 0x01, 0x03,
-                0x02, 0x01, 0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9,
0x00, 0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                0x04,
+                0x1F,
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x00,
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -248,7 +348,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -277,14 +377,64 @@ public class SearchRequestMatchingRuleAs
             { 0x30, 0x3D, 0x02,
                 0x01,
                 0x04, // messageID
-                0x63, 0x38,
+                0x63,
+                0x38,
                 0x04,
                 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x02, (
byte ) 0x81, 0x00, // matchingRule    [1] MatchingRuleId OPTIONAL,
-                0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x02,
+                ( byte ) 0x81,
+                0x00, // matchingRule    [1] MatchingRuleId OPTIONAL,
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -293,7 +443,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -322,14 +472,64 @@ public class SearchRequestMatchingRuleAs
             { 0x30, 0x3D, 0x02,
                 0x01,
                 0x04, // messageID
-                0x63, 0x38,
+                0x63,
+                0x38,
                 0x04,
                 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x02, (
byte ) 0x82, 0x00, //    type            [2] AttributeDescription OPTIONAL
-                0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x02,
+                ( byte ) 0x82,
+                0x00, //    type            [2] AttributeDescription OPTIONAL
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -338,7 +538,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -372,12 +572,66 @@ public class SearchRequestMatchingRuleAs
                 0x3E,
                 0x04,
                 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x08, (
byte ) 0x81, 0x04, 't', 'e',
-                's', 't', ( byte ) 0x83, 0x00, //    matchValue      [3] AssertionValue,
-                0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x08,
+                ( byte ) 0x81,
+                0x04,
+                't',
+                'e',
+                's',
+                't',
+                ( byte ) 0x83,
+                0x00, //    matchValue      [3] AssertionValue,
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -386,7 +640,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -442,12 +696,66 @@ public class SearchRequestMatchingRuleAs
                 0x3E,
                 0x04,
                 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x08, (
byte ) 0x81, 0x04, 't', 'e',
-                's', 't', ( byte ) 0x82, 0x00, //    type            [2] AttributeDescription
OPTIONAL,
-                0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x08,
+                ( byte ) 0x81,
+                0x04,
+                't',
+                'e',
+                's',
+                't',
+                ( byte ) 0x82,
+                0x00, //    type            [2] AttributeDescription OPTIONAL,
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -456,7 +764,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -495,7 +803,14 @@ public class SearchRequestMatchingRuleAs
                 // SearchRequest ::= [APPLICATION 3] SEQUENCE {
                 0x04,
                 0x11, //   baseObject      LDAPDN, (dc=example,dc=com)
-                'd', 'c', '=', 'e', 'x', 'a', 'm', 'p',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
                 'l',
                 'e',
                 ',',
@@ -531,18 +846,60 @@ public class SearchRequestMatchingRuleAs
                 // MatchingRuleAssertion ::= SEQUENCE {
                 ( byte ) 0x81,
                 0x02, //   matchingRule    [1] MatchingRuleId OPTIONAL,
-                'c', 'n',
+                'c',
+                'n',
                 ( byte ) 0x82,
                 0x13, //    type            [2] AttributeDescription OPTIONAL,
-                '1', '.', '2', '.', '8', '4', '0', '.', '4', '8', '0', '1', '8', '.', '1',
'.', '2', '.', '2',
+                '1',
+                '.',
+                '2',
+                '.',
+                '8',
+                '4',
+                '0',
+                '.',
+                '4',
+                '8',
+                '0',
+                '1',
+                '8',
+                '.',
+                '1',
+                '.',
+                '2',
+                '.',
+                '2',
                 ( byte ) 0x83,
                 0x03, //    matchValue      [3] AssertionValue,
-                'a', 'o', 'k',
+                'a',
+                'o',
+                'k',
                 //    dnAttributes    [4] BOOLEAN DEFAULT FALSE  }
-                ( byte ) 0x84, 0x00, 0x30,
+                ( byte ) 0x84,
+                0x00,
+                0x30,
                 0x15, // attributes      AttributeDescriptionList }
-                0x04, 0x05, 'a', 't', 't', 'r', '0', 0x04, 0x05, 'a', 't', 't', 'r', '1',
0x04, 0x05, 'a', 't', 't',
-                'r', '2' };
+                0x04,
+                0x05,
+                'a',
+                't',
+                't',
+                'r',
+                '0',
+                0x04,
+                0x05,
+                'a',
+                't',
+                't',
+                'r',
+                '1',
+                0x04,
+                0x05,
+                'a',
+                't',
+                't',
+                'r',
+                '2' };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -551,7 +908,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -585,11 +942,64 @@ public class SearchRequestMatchingRuleAs
                 0x3C,
                 0x04,
                 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x06, (
byte ) 0x81, 0x04, 't', 'e',
-                's', 't', 0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x06,
+                ( byte ) 0x81,
+                0x04,
+                't',
+                'e',
+                's',
+                't',
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -598,7 +1008,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -632,11 +1042,64 @@ public class SearchRequestMatchingRuleAs
                 0x3E,
                 0x04,
                 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x06, (
byte ) 0x82, 0x04, 't', 'e',
-                's', 't', 0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x06,
+                ( byte ) 0x82,
+                0x04,
+                't',
+                'e',
+                's',
+                't',
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -645,7 +1108,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message
@@ -679,11 +1142,64 @@ public class SearchRequestMatchingRuleAs
                 0x3E,
                 0x04,
                 0x1F, // baseObject LDAPDN,
-                'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd',
'c', '=', 'e', 'x', 'a',
-                'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01,
0x0A, 0x01, 0x03, 0x02, 0x01,
-                0x00, 0x02, 0x01, 0x00, 0x01, 0x01, ( byte ) 0xFF, ( byte ) 0xA9, 0x06, (
byte ) 0x83, 0x04, 't', 'e',
-                's', 't', 0x30, 0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
-                0x04, 0x00 };
+                'u',
+                'i',
+                'd',
+                '=',
+                'a',
+                'k',
+                'a',
+                'r',
+                'a',
+                's',
+                'u',
+                'l',
+                'u',
+                ',',
+                'd',
+                'c',
+                '=',
+                'e',
+                'x',
+                'a',
+                'm',
+                'p',
+                'l',
+                'e',
+                ',',
+                'd',
+                'c',
+                '=',
+                'c',
+                'o',
+                'm',
+                0x0A,
+                0x01,
+                0x01,
+                0x0A,
+                0x01,
+                0x03,
+                0x02,
+                0x01,
+                0x00,
+                0x02,
+                0x01,
+                0x00,
+                0x01,
+                0x01,
+                ( byte ) 0xFF,
+                ( byte ) 0xA9,
+                0x06,
+                ( byte ) 0x83,
+                0x04,
+                't',
+                'e',
+                's',
+                't',
+                0x30,
+                0x02, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription
+                0x04,
+                0x00 };
 
         Asn1Decoder ldapDecoder = new Asn1Decoder();
 
@@ -692,7 +1208,7 @@ public class SearchRequestMatchingRuleAs
         stream.flip();
 
         // Allocate a LdapMessage Container
-        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer = 
+        LdapMessageContainer<SearchRequestDecorator> ldapMessageContainer =
             new LdapMessageContainer<SearchRequestDecorator>( codec );
 
         // Decode a SearchRequest message



Mime
View raw message