Examples of KrbSafeBodyContainer


Examples of org.apache.directory.shared.kerberos.codec.krbSafeBody.KrbSafeBodyContainer

        } );

        String decoded = Strings.dumpBytes(stream.array());
        stream.flip();
       
        KrbSafeBodyContainer container = new KrbSafeBodyContainer();
        container.setStream( stream );
       
        try
        {
            decoder.decode( stream, container );
        }
        catch( DecoderException e )
        {
            e.printStackTrace();
            fail();
        }
       
        KrbSafeBody body = container.getKrbSafeBody();
       
        HostAddress ad = new HostAddress( InetAddress.getByName( "127.0.0.1" ) );
       
        assertTrue( Arrays.equals( new byte[]{0,1}, body.getUserData() ) );
        assertNull( body.getTimestamp() );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.