Package org.apache.directory.shared.ldap.codec.extended.operations.certGeneration

Examples of org.apache.directory.shared.ldap.codec.extended.operations.certGeneration.CertGenerationContainer


    public void handleExtendedOperation( LdapSession session, InternalExtendedRequest req ) throws Exception
    {
        ByteBuffer bb = ByteBuffer.wrap( req.getPayload() );
        Asn1Decoder decoder = new CertGenerationDecoder();
        CertGenerationContainer container = new CertGenerationContainer();
       
        try
        {
            decoder.decode( bb, container );
        }
        catch( DecoderException e )
        {
            throw e;
        }
       
        CertGenerationObject certGenObj = container.getCertGenerationObject();
       
        ClonedServerEntry entry = session.getCoreSession().lookup( new DN( certGenObj.getTargetDN() ) );
        if( entry != null )
        {
            TlsKeyGenerator.addKeyPair( entry.getOriginalEntry(), certGenObj.getIssuerDN(), certGenObj.getSubjectDN(), certGenObj.getKeyAlgorithm() );
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.codec.extended.operations.certGeneration.CertGenerationContainer

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.