Package network.oxalis.pkix.ocsp.fetcher
Class UrlOcspFetcher
- java.lang.Object
-
- network.oxalis.pkix.ocsp.fetcher.UrlOcspFetcher
-
- All Implemented Interfaces:
OcspFetcher
public class UrlOcspFetcher extends Object
- Author:
- erlend
-
-
Field Summary
Fields Modifier and Type Field Description protected Propertiespropertiesstatic Property<Integer>TIMEOUT_CONNECTstatic Property<Integer>TIMEOUT_READ
-
Constructor Summary
Constructors Constructor Description UrlOcspFetcher(Properties properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Builder<OcspFetcher>builder()Builder to create an instance of OcspFetcher using HttpURLConnection for connectivity.OcspFetcherResponsefetch(URI uri, byte[] content)
-
-
-
Field Detail
-
properties
protected final Properties properties
-
-
Constructor Detail
-
UrlOcspFetcher
public UrlOcspFetcher(Properties properties)
-
-
Method Detail
-
builder
public static Builder<OcspFetcher> builder()
Builder to create an instance of OcspFetcher using HttpURLConnection for connectivity.- Returns:
- Prepared fetcher.
-
fetch
public OcspFetcherResponse fetch(URI uri, byte[] content) throws IOException
- Throws:
IOException
-
-