Package org.apache.qpid.proton.amqp.security

Examples of org.apache.qpid.proton.amqp.security.SaslOutcome


    public SaslOutcome newInstance(Object described)
    {
        List l = (List) described;

        SaslOutcome o = new SaslOutcome();

        if(l.isEmpty())
        {
            throw new DecodeException("The code field cannot be omitted");
        }

        switch(2 - l.size())
        {

            case 0:
                o.setAdditionalData( (Binary) l.get( 1 ) );
            case 1:
                o.setCode(SaslCode.valueOf((UnsignedByte) l.get(0)));
        }


        return o;
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.amqp.security.SaslOutcome

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.