Package org.apache.directory.shared.kerberos.messages

Examples of org.apache.directory.shared.kerberos.messages.ApRep


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

        ApRep apRep = (ApRep)kerberosMessageContainer.getMessage();
       
        // Check the encoding
        int length = apRep.computeLength();

        // Check the length
        assertEquals( 0x21, length );
       
        // Check the encoding
        ByteBuffer encodedPdu = ByteBuffer.allocate( length );
       
        try
        {
            encodedPdu = apRep.encode( encodedPdu );
           
            // Check the length
            assertEquals( 0x21, encodedPdu.limit() );
        }
        catch ( EncoderException ee )
View Full Code Here


        {
            throw new KerberosException( ErrorType.KRB_AP_ERR_BAD_INTEGRITY, de );
        }

        // get the decoded ApRep
        ApRep apRep = ( ( ApRepContainer ) apRepContainer ).getApRep();

        return apRep;
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.kerberos.messages.ApRep

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.