Code example for Stack

Methods: clear, empty

0
         
        public static void clear () 
        { 
            Stack s = (Stack)local.get();
 
            if ((s == null) || (s.empty()))
                return; 
 
            s.clear();
        } 
         
    } 
 
    private Subject subject = null;
    private JAASUserRealm realm = null;
    private static RoleStack runAsRoles = new RoleStack();
    private RoleCheckPolicy roleCheckPolicy = null;
    private String name = null;
    private LoginContext loginContext = null;