Examples of TicketFlags


Examples of org.apache.directory.shared.kerberos.flags.TicketFlags


    @Test
    public void testSetFlag() throws Exception
    {
        TicketFlags tf = new TicketFlags();
       
        for ( TicketFlag t : TicketFlag.values() )
        {
            if ( !t.equals( TicketFlag.MAX_VALUE ) )
            {
                tf.setFlag( t );
            }
        }
       
        assertTrue( tf.isReserved() ); // 0
        assertTrue( tf.isForwardable() ); // 1
        assertTrue( tf.isForwarded() ); // 2
        assertTrue( tf.isProxiable() ); // 3
        assertTrue( tf.isProxy() ); // 4
        assertTrue( tf.isMayPosdate() ); // 5
        assertTrue( tf.isPostdated() ); // 6
        assertTrue( tf.isInvalid() ); // 7
        assertTrue( tf.isRenewable() ); // 8
        assertTrue( tf.isInitial() ); // 9
        assertTrue( tf.isPreAuth() ); // 10
        assertTrue( tf.isHwAuthent() ); // 11
        assertTrue( tf.isTransitedPolicyChecked() ); // 12
        assertTrue( tf.isOkAsDelegate() ); // 13
    }
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.