Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.security.auth
Class Subject.SecureSet  view Subject.SecureSet download Subject.SecureSet.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractSet
          extended byjavax.security.auth.Subject.SecureSet
All Implemented Interfaces:
java.util.Collection, java.lang.Iterable, java.io.Serializable, java.util.Set
Enclosing class:
Subject

private static class Subject.SecureSet
extends java.util.AbstractSet
implements java.io.Serializable

An undocumented inner class that is used for sets in the parent class.


Field Summary
private  java.util.LinkedList elements
           
(package private) static int PRINCIPALS
           
(package private) static int PRIVATE_CREDENTIALS
           
(package private) static int PUBLIC_CREDENTIALS
           
private static long serialVersionUID
           
private  Subject subject
           
private  int type
           
 
Constructor Summary
(package private) Subject.SecureSet(Subject subject, int type)
           
(package private) Subject.SecureSet(Subject subject, int type, java.util.Collection inElements)
           
 
Method Summary
 boolean add(java.lang.Object element)
          Adds the specified element to the set if it is not already present (optional operation).
 void clear()
          Removes all elements from this set (optional operation).
 boolean contains(java.lang.Object element)
          Returns true if the set contains the specified element.
 java.util.Iterator iterator()
          Returns an iterator over the set.
private  void readObject(java.io.ObjectInputStream in)
           
 boolean remove(java.lang.Object element)
          Removes the specified element from this set (optional operation).
 boolean removeAll(java.util.Collection c)
          Removes from this set all elements in the given collection (optional operation).
 boolean retainAll(java.util.Collection c)
          Retains only the elements in this set that are also in the specified collection (optional operation).
 int size()
          Returns the number of elements in the set.
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, isEmpty, toArray, toArray
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

PRINCIPALS

static final int PRINCIPALS
See Also:
Constant Field Values

PUBLIC_CREDENTIALS

static final int PUBLIC_CREDENTIALS
See Also:
Constant Field Values

PRIVATE_CREDENTIALS

static final int PRIVATE_CREDENTIALS
See Also:
Constant Field Values

subject

private final Subject subject

elements

private final java.util.LinkedList elements

type

private final transient int type
Constructor Detail

Subject.SecureSet

Subject.SecureSet(Subject subject,
                  int type,
                  java.util.Collection inElements)

Subject.SecureSet

Subject.SecureSet(Subject subject,
                  int type)
Method Detail

size

public int size()
Description copied from interface: java.util.Set
Returns the number of elements in the set. If there are more than Integer.MAX_VALUE mappings, return Integer.MAX_VALUE. This is the cardinality of the set.

Specified by:
size in interface java.util.Set

iterator

public java.util.Iterator iterator()
Description copied from interface: java.util.Set
Returns an iterator over the set. The iterator has no specific order, unless further specified.

Specified by:
iterator in interface java.util.Set

add

public boolean add(java.lang.Object element)
Description copied from interface: java.util.Set
Adds the specified element to the set if it is not already present (optional operation). In particular, the comparison algorithm is o == null ? e == null : o.equals(e). Sets need not permit all values, and may document what exceptions will be thrown if a value is not permitted.

Specified by:
add in interface java.util.Set

remove

public boolean remove(java.lang.Object element)
Description copied from interface: java.util.Set
Removes the specified element from this set (optional operation). If an element e exists, o == null ? e == null : o.equals(e), it is removed from the set.

Specified by:
remove in interface java.util.Set

contains

public boolean contains(java.lang.Object element)
Description copied from interface: java.util.Set
Returns true if the set contains the specified element. In other words, this looks for o == null ? e == null : o.equals(e).

Specified by:
contains in interface java.util.Set

removeAll

public boolean removeAll(java.util.Collection c)
Description copied from class: java.util.AbstractSet
Removes from this set all elements in the given collection (optional operation). This implementation uses size() to determine the smaller collection. Then, if this set is smaller, it iterates over the set, calling Iterator.remove if the collection contains the element. If this set is larger, it iterates over the collection, calling Set.remove for all elements in the collection. Note that this operation will fail if a remove methods is not supported.

Specified by:
removeAll in interface java.util.Set

retainAll

public boolean retainAll(java.util.Collection c)
Description copied from interface: java.util.Set
Retains only the elements in this set that are also in the specified collection (optional operation). If the argument is also a set, this performs the intersection of the two sets.

Specified by:
retainAll in interface java.util.Set

clear

public void clear()
Description copied from interface: java.util.Set
Removes all elements from this set (optional operation). This set will be empty afterwords, unless an exception occurs.

Specified by:
clear in interface java.util.Set

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.lang.ClassNotFoundException,
                        java.io.IOException