Class X509Context

java.lang.Object
io.spiffe.workloadapi.X509Context

public class X509Context extends Object
Represents the X.509 materials that are fetched from the Workload API.

Contains a list of X509Svid and a X509BundleSet.

  • Method Details

    • of

      public static X509Context of(@NonNull @NonNull List<X509Svid> x509Svids, @NonNull @NonNull X509BundleSet x509BundleSet)
      Creates a new X509Context from the list of X.509 SVIDs and the X.509 Bundle set.
      Parameters:
      x509Svids - a list of X509Svid
      x509BundleSet - an instance of X509BundleSet
      Returns:
      an instance of an X509Context
    • getDefaultSvid

      public X509Svid getDefaultSvid()
      Returns the default SVID (the first in the list).
      Returns:
      the default SVID (the first in the list)