2

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?

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
  • You shouldn't use classes from the `sun.*` packages, they are implementation details of Java and could change without notice (or they might not even exist in alternative implementations of Java). – Mark Rotteveel Jun 06 '20 at 07:17

1 Answers1

6

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

Thilo
  • 257,207
  • 101
  • 511
  • 656