| java.lang.Object sun.security.x509.GeneralSubtrees
GeneralSubtrees | public class GeneralSubtrees implements Cloneable(Code) | | Represent the GeneralSubtrees ASN.1 object.
The ASN.1 for this is
GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
version: 1.4, 10/10/06 author: Amit Kapoor author: Hemma Prafullchandra author: Andreas Sterbenz |
GeneralSubtrees | public GeneralSubtrees()(Code) | | The default constructor for the class.
|
GeneralSubtrees | public GeneralSubtrees(DerValue val) throws IOException(Code) | | Create the object from the passed DER encoded form.
Parameters: val - the DER encoded form of the same. |
equals | public boolean equals(Object obj)(Code) | | Compare two general subtrees by comparing the subtrees
of each.
Parameters: other - GeneralSubtrees to compare to this |
hashCode | public int hashCode()(Code) | | |
intersect | public GeneralSubtrees intersect(GeneralSubtrees other)(Code) | | intersect this GeneralSubtrees with other. This function
is used in merging permitted NameConstraints. The operation
is performed as follows:
- If a name in other narrows all names of the same type in this,
the result will contain the narrower name and none of the
names it narrows.
- If a name in other widens all names of the same type in this,
the result will not contain the wider name.
- If a name in other does not share the same subtree with any name
of the same type in this, then the name is added to the list
of GeneralSubtrees returned. These names should be added to
the list of names that are specifically excluded. The reason
is that, if the intersection is empty, then no names of that
type are permitted, and the only way to express this in
NameConstraints is to include the name in excludedNames.
- If a name in this has no name of the same type in other, then
the result contains the name in this. No name of a given type
means the name type is completely permitted.
- If a name in other has no name of the same type in this, then
the result contains the name in other. This means that
the name is now constrained in some way, whereas before it was
completely permitted.
Parameters: other - GeneralSubtrees to be intersected with this |
reduce | public void reduce(GeneralSubtrees excluded)(Code) | | reduce this GeneralSubtrees by contents of another. This function
is used in merging excluded NameConstraints with permitted NameConstraints
to obtain a minimal form of permitted NameConstraints. It is an
optimization, and does not affect correctness of the results.
Parameters: excluded - GeneralSubtrees |
remove | public void remove(int index)(Code) | | |
toString | public String toString()(Code) | | Return a printable string of the GeneralSubtree.
|
union | public void union(GeneralSubtrees other)(Code) | | construct union of this GeneralSubtrees with other.
Parameters: other - GeneralSubtrees to be united with this |
|
|