All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.cert.dane.DANEEntryStoreBuilder Maven / Gradle / Ivy

Go to download

The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and certificate generation. The APIs are designed primarily to be used in conjunction with the BC FIPS provider. The APIs may also be used with other providers although if being used in a FIPS context it is the responsibility of the user to ensure that any other providers used are FIPS certified.

There is a newer version: 2.0.7
Show newest version
package org.bouncycastle.cert.dane;

/**
 * Builder for the DANECertificateStore.
 */
public class DANEEntryStoreBuilder
{
    private final DANEEntryFetcherFactory daneEntryFetcher;

    public DANEEntryStoreBuilder(DANEEntryFetcherFactory daneEntryFetcher)
    {
        this.daneEntryFetcher = daneEntryFetcher;
    }

    /**
     * Build a DANECertificateStore from the provided domainName details.
     *
     * @param domainName the domain name to look up the _smimecert entries in.
     * @return a Store of DANEEntry representing the _smimecert entries containing certificates.
     * @throws DANEException in the case of a DNS issue or encoding issue with a DNS record.
     */
    public DANEEntryStore build(String domainName)
        throws DANEException
    {
        return new DANEEntryStore(daneEntryFetcher.build(domainName).getEntries());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy