java.lang.Object
com.irurueta.authserver.authorization.api.web.clientauth.TrustAnchorsReader

@Component public class TrustAnchorsReader extends Object
Reads the PEM files of the trusted certificate authorities into trust anchors. A file may hold several certificates.
  • Field Details

  • Constructor Details

    • TrustAnchorsReader

      public TrustAnchorsReader()
  • Method Details

    • read

      public MtlsTrustAnchors read(List<String> paths)
      Reads the files.
      Parameters:
      paths - paths of the PEM files.
      Returns:
      the trust anchors of every certificate of every file.
      Throws:
      IllegalArgumentException - if a file cannot be read or holds no certificate, so a misconfigured server fails at startup instead of refusing every client.