Class CertificateUtil

java.lang.Object
com.webauthn4j.util.CertificateUtil

public class CertificateUtil extends Object
A Utility class for certificate manipulation
  • Method Details

    • createCertPathValidator

      @NotNull public static @NotNull CertPathValidator createCertPathValidator()
    • createPKIXParameters

      @NotNull public static @NotNull PKIXParameters createPKIXParameters(@NotNull @NotNull Set<TrustAnchor> trustAnchors)
    • createKeyStore

      @NotNull public static @NotNull KeyStore createKeyStore()
    • createCertificateFactory

      @NotNull public static @NotNull CertificateFactory createCertificateFactory()
    • generateTrustAnchors

      @NotNull public static <C extends X509Certificate> @NotNull Set<TrustAnchor> generateTrustAnchors(@NotNull @NotNull List<C> certificates)
    • generateCertPath

      @NotNull public static <C extends Certificate> @NotNull CertPath generateCertPath(@NotNull @NotNull List<C> certificates)
    • generateX509Certificate

      @NotNull public static @NotNull X509Certificate generateX509Certificate(@NotNull @org.jetbrains.annotations.NotNull byte[] bytes)
    • generateX509Certificate

      @NotNull public static @NotNull X509Certificate generateX509Certificate(@NotNull @NotNull InputStream inputStream)