List of
Lists, where each sub-List contains objects of
type Vertex. A Vertex describes one possible or
actual step in the chain building process, and the associated
Certificate. Specifically, a Vertex object
contains a Certificate and an index value referencing the
next sub-list in the process. If the index value is -1 then this
Vertex doesn't continue the attempted build path.
Example:
Attempted Paths:
AdjacencyList structure:
The iterator method returns objects of type BuildStep, not
objects of type Vertex.
A BuildStep contains a Vertex and a result code,
accessible via getResult method. There are five result values.
POSSIBLE denotes that the current step represents a
Certificate that the builder is considering at this point in
the build. FOLLOW denotes a Certificate (one of
those noted as POSSIBLE) that the builder is using to try
extending the chain. BACK represents that a
FOLLOW was incorrect, and is being removed from the chain.
There is exactly one FOLLOW for each BACK. The
values SUCCEED and FAIL mean that we've come to
the end of the build process, and there will not be any more entries in
the list.
sun.security.provider.certpath.BuildStep , sun.security.provider.certpath.Vertex
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final ArrayList |
| Access | Constructor and Description |
|---|---|
| public | AdjacencyList(List<List<Vertex>>
a list)List of Lists of
Vertex objectsConstructs a new |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public Iterator | Returns: anIterator over the BuildStepsGets an |
| public int | |
| public String | Returns: String representationOverrides java. Prints out a string representation of this AdjacencyList. |
| mOrigList | back to summary |
|---|---|
| private final List<List<Vertex>> mOrigList | |
| mStepList | back to summary |
|---|---|
| private final ArrayList<BuildStep> mStepList | |
| AdjacencyList | back to summary |
|---|---|
| public AdjacencyList(List<List<Vertex>> list) Constructs a new | |
| buildList | back to summary |
|---|---|
| private boolean buildList(List<List<Vertex>> theList, int index, BuildStep follow) Recursive, private method which actually builds the step list from
the given adjacency list. | |
| iterator | back to summary |
|---|---|
| public Iterator Gets an | |
| numAttemptedPaths | back to summary |
|---|---|
| public int numAttemptedPaths() Returns the number of attempted paths (useful for debugging). | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Prints out a string representation of this AdjacencyList. | |