Class FidoMetadataDownloader.FidoMetadataDownloaderBuilder

  • Enclosing class:
    FidoMetadataDownloader

    public static class FidoMetadataDownloader.FidoMetadataDownloaderBuilder
    extends java.lang.Object
    • Method Detail

      • useCrls

        public FidoMetadataDownloader.FidoMetadataDownloaderBuilder useCrls​(@NonNull
                                                                            @NonNull java.util.Collection<java.security.cert.CRL> crls)
                                                                     throws java.security.InvalidAlgorithmParameterException,
                                                                            java.security.NoSuchAlgorithmException
        Use the provided CRLs.

        CRLs will also be downloaded from distribution points if the com.sun.security.enableCRLDP system property is set to true (assuming the use of the CertPathValidator implementation from the SUN provider).

        Throws:
        java.security.InvalidAlgorithmParameterException - if CertStore.getInstance(String, CertStoreParameters) does.
        java.security.NoSuchAlgorithmException - if a "Collection" type CertStore provider is not available.
        See Also:
        useCrls(CertStore)
      • useCrls

        public FidoMetadataDownloader.FidoMetadataDownloaderBuilder useCrls​(java.security.cert.CertStore certStore)
        Use CRLs in the provided CertStore.

        CRLs will also be downloaded from distribution points if the com.sun.security.enableCRLDP system property is set to true (assuming the use of the CertPathValidator implementation from the SUN provider).

        See Also:
        useCrls(Collection)
      • trustHttpsCerts

        public FidoMetadataDownloader.FidoMetadataDownloaderBuilder trustHttpsCerts​(@NonNull
                                                                                    @NonNull java.security.cert.X509Certificate... certificates)
        Use the provided X509Certificates as trust roots for HTTPS downloads.

        This is primarily useful when setting downloadTrustRoot and/or downloadBlob to download from custom servers instead of the defaults.

        If provided, these will be used for downloading

        • the trust root certificate for the BLOB signature chain, and
        • the metadata BLOB.
        If not set, the system default certificate store will be used.