Package org.apache.directory.api.ldap.extras.extended.ads_impl.certGeneration

Examples of org.apache.directory.api.ldap.extras.extended.ads_impl.certGeneration.CertGenerationRequestDecorator


        catch ( DecoderException e )
        {
            fail( e.getMessage() );
        }

        CertGenerationRequestDecorator req = new CertGenerationRequestDecorator(
            LdapApiServiceFactory.getSingleton(), new CertGenerationRequestImpl() );
        req = container.getCertGenerationObject();
        assertEquals( dn, req.getTargetDN() );
        assertEquals( dn, req.getIssuerDN() );
        assertEquals( dn, req.getSubjectDN() );
        assertEquals( keyAlgo, req.getKeyAlgorithm() );

        assertEquals( bufLen, req.getCertGenerationObject().computeLength() );

        try
        {
            ByteBuffer encodedBuf = req.getCertGenerationObject().encode();
            String encodedPdu = Strings.dumpBytes( encodedBuf.array() );

            assertEquals( decodedPdu, encodedPdu );
        }
        catch ( EncoderException e )
View Full Code Here


        catch ( DecoderException e )
        {
            fail( e.getMessage() );
        }

        CertGenerationRequestDecorator req = container.getCertGenerationRequest();
        assertEquals( dn, req.getTargetDN() );
        assertEquals( dn, req.getIssuerDN() );
        assertEquals( dn, req.getSubjectDN() );
        assertEquals( keyAlgo, req.getKeyAlgorithm() );

        assertEquals( bufLen, req.computeLengthInternal() );

        try
        {
            ByteBuffer encodedBuf = req.encodeInternal();
            String encodedPdu = Strings.dumpBytes( encodedBuf.array() );

            assertEquals( decodedPdu, encodedPdu );
        }
        catch ( EncoderException e )
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.extras.extended.ads_impl.certGeneration.CertGenerationRequestDecorator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.