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

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


        {
            sslFilter.startSsl( session.getIoSession() );
        }

        ExtendedResponseDecorator<ExtendedResponse> res = new ExtendedResponseDecorator<ExtendedResponse>(
            LdapApiServiceFactory.getSingleton(), new StartTlsResponseImpl( req.getMessageId() ) );
        LdapResult result = res.getLdapResult();
        result.setResultCode( ResultCodeEnum.SUCCESS );
        res.setResponseName( EXTENSION_OID );
        res.setResponseValue( Strings.EMPTY_BYTES );
View Full Code Here


     * {@inheritDoc}
     */
    public StartTlsResponse newResponse( byte[] encodedValue ) throws DecoderException
    {
        StartTlsResponseDecorator response = new StartTlsResponseDecorator( codec,
            new StartTlsResponseImpl() );
        response.setResponseValue( encodedValue );
        return response;
    }
View Full Code Here

        // 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.StartTlsResponseImpl

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.