Package org.apache.directory.shared.kerberos.codec.checksum

Examples of org.apache.directory.shared.kerberos.codec.checksum.ChecksumContainer


            } );
       
        String decodedPdu = Strings.dumpBytes(stream.array());
        stream.flip();

        ChecksumContainer chkContainer = new ChecksumContainer();
       
        try
        {
            krbDecoder.decode( stream, chkContainer );
        }
        catch ( DecoderException de )
        {
            fail( de.getMessage() );
        }

        Checksum checksum = chkContainer.getChecksum();
       
        assertEquals( ChecksumType.getTypeByValue( 2 ), checksum.getChecksumType() );
        assertTrue( Arrays.equals( Strings.getBytesUtf8("chksum"), checksum.getChecksumValue() ) );
       
        ByteBuffer bb = ByteBuffer.allocate( checksum.computeLength() );
View Full Code Here


                    0x04, 0x06, 'c', 'h', 'k', 's', 'u', 'm'
            } );
       
        stream.flip();

        ChecksumContainer chkContainer = new ChecksumContainer();
       
        krbDecoder.decode( stream, chkContainer );
        fail();
    }
View Full Code Here

                    0x02, 0x01, 0x02
            } );
       
        stream.flip();

        ChecksumContainer chkContainer = new ChecksumContainer();
       
        krbDecoder.decode( stream, chkContainer );
        fail();
    }
View Full Code Here

                0x30, 0x0
            } );
       
        stream.flip();

        ChecksumContainer chkContainer = new ChecksumContainer();
       
        krbDecoder.decode( stream, chkContainer );
        fail();
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.kerberos.codec.checksum.ChecksumContainer

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.