类 CertificateParser

java.lang.Object
cn.taketoday.buildpack.platform.docker.ssl.CertificateParser

final class CertificateParser extends Object
Parser for X.509 certificates in PEM format.
从以下版本开始:
4.0
作者:
Scott Frederick, Phillip Webb, Harry Yang
  • 字段详细资料

  • 构造器详细资料

    • CertificateParser

      private CertificateParser()
  • 方法详细资料

    • parse

      static X509Certificate[] parse(Path... paths)
      Load certificates from the specified file paths.
      参数:
      paths - one or more paths to certificate files
      返回:
      certificates parsed from specified file paths
    • getCertificateFactory

      private static CertificateFactory getCertificateFactory()
    • readCertificates

      private static void readCertificates(Path path, CertificateFactory factory, Consumer<X509Certificate> consumer)
    • decodeBase64

      private static byte[] decodeBase64(String content)