Package org.apache.directory.api.ldap.extras.extended.startTls

Examples of org.apache.directory.api.ldap.extras.extended.startTls.StartTlsResponse


        // It's an opaque extended operation
        @SuppressWarnings("unchecked")
        ExtendedResponseDecorator<ExtendedResponse> response = ( ExtendedResponseDecorator<ExtendedResponse> ) decoratedResponse;

        // Decode the response, as it's an opaque operation
        StartTlsResponse startTlsResponse = new StartTlsResponseImpl( response.getMessageId() );
       
        startTlsResponse.getLdapResult().setResultCode( response.getLdapResult().getResultCode() );
        startTlsResponse.getLdapResult().setDiagnosticMessage( response.getLdapResult().getDiagnosticMessage() );
        StartTlsResponseDecorator decorated = new StartTlsResponseDecorator( codec, new StartTlsResponseImpl() );

        return decorated;
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.extras.extended.startTls.StartTlsResponse

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.