Package org.apache.directory.shared.kerberos.components

Examples of org.apache.directory.shared.kerberos.components.PaEncTimestamp


        {
            fail( de.getMessage() );
        }

        // Check the decoded PaEncTimestamp
        PaEncTimestamp paEncTimestamp = ( ( PaEncTimestampContainer ) paEncTimestampContainer ).getPaEncTimestamp();

        assertEquals( EncryptionType.AES256_CTS_HMAC_SHA1_96, paEncTimestamp.getEType() );
        assertEquals( 5, paEncTimestamp.getKvno() );
        assertTrue( Arrays.equals( Strings.getBytesUtf8( "abcdef" ), paEncTimestamp.getCipher() ) );

        // Check the encoding
        ByteBuffer bb = ByteBuffer.allocate( paEncTimestamp.computeLength() );

        try
        {
            bb = paEncTimestamp.encode( bb );

            // Check the length
            assertEquals( 0x16, bb.limit() );

            String encodedPdu = Strings.dumpBytes( bb.array() );
View Full Code Here


     */
    public PaEncTimestampContainer()
    {
        super();

        setEncryptedData( new PaEncTimestamp() );
    }
View Full Code Here

        {
            fail( de.getMessage() );
        }

        // Check the decoded PaEncTimestamp
        PaEncTimestamp paEncTimestamp = ( ( PaEncTimestampContainer ) paEncTimestampContainer ).getPaEncTimestamp();

        assertEquals( EncryptionType.AES256_CTS_HMAC_SHA1_96, paEncTimestamp.getEType() );
        assertEquals( 5, paEncTimestamp.getKvno() );
        assertTrue( Arrays.equals( Strings.getBytesUtf8( "abcdef" ), paEncTimestamp.getCipher() ) );

        // Check the encoding
        ByteBuffer bb = ByteBuffer.allocate( paEncTimestamp.computeLength() );

        try
        {
            bb = paEncTimestamp.encode( bb );

            // Check the length
            assertEquals( 0x16, bb.limit() );

            String encodedPdu = Strings.dumpBytes( bb.array() );
View Full Code Here

        {
            fail( de.getMessage() );
        }

        // Check the decoded PaEncTimestamp
        PaEncTimestamp paEncTimestamp = ( ( PaEncTimestampContainer ) paEncTimestampContainer ).getPaEncTimestamp();

        assertEquals( EncryptionType.AES256_CTS_HMAC_SHA1_96, paEncTimestamp.getEType() );
        assertEquals( 5, paEncTimestamp.getKvno() );
        assertTrue( Arrays.equals( Strings.getBytesUtf8("abcdef"), paEncTimestamp.getCipher() ) );

        // Check the encoding
        ByteBuffer bb = ByteBuffer.allocate( paEncTimestamp.computeLength() );
       
        try
        {
            bb = paEncTimestamp.encode( bb );
   
            // Check the length
            assertEquals( 0x16, bb.limit() );
   
            String encodedPdu = Strings.dumpBytes(bb.array());
View Full Code Here

     */
    public PaEncTimestampContainer()
    {
        super();
       
        setEncryptedData( new PaEncTimestamp() );
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.kerberos.components.PaEncTimestamp

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.