blob: 82bcb488785ebad791676ba5d823e95dd3e425d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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());
}
}
|