Search code examples
javagraphjava-8adjacency-listsun

Java built-in Adjacency List


I was reading this which consists of old java packages such as sun packages. I find some of them useful.

On of them is sun.security.provider.certpath.Vertex, which represents a Vertex and following the Vertex class was AdjacencyList i.e sun.security.provider.certpath.AdjacencyList, which represents the adjacency list of vertexes.

From the documentation says,

An AdjacencyList is used to store the history of certification paths.

Is this specifically defined for the X500 certificates and their paths and ignore the internal API warning that cannot be suppressed? Can we use this classes for the generic graphs for problem solving on JDK 1.8?


Solution

  • That class is a specialised, non-generic implementation hard-coded to work with certificate validation steps. You cannot use it for other things.