public class HTTPResourceFactoryBean extends org.springframework.beans.factory.config.AbstractFactoryBean<HTTPResource>
HTTPResource.| Modifier and Type | Field and Description |
|---|---|
private String |
backingResource
Backing file path.
|
private List<org.springframework.core.io.Resource> |
certificateResources
The resources to be turned into certificates.
|
private HttpClient |
httpClient
HTTP Client used to pull the resource.
|
private HttpClientContextHandler |
httpClientContextHandler
Optional handler to pre- and post-process context.
|
private List<org.springframework.core.io.Resource> |
keyResources
The resources to be turned into keys.
|
private org.slf4j.Logger |
log
Class logger.
|
private URL |
resourceURL
URL to the Resource.
|
private boolean |
usePKIX
Use a PKIX trust engine.
|
private Integer |
verifyDepth
PKIX verify depth.
|
| Constructor and Description |
|---|
HTTPResourceFactoryBean()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected HTTPResource |
createInstance() |
protected List<X509Certificate> |
getCertificates()
Get the configured certificates in their native form.
|
protected List<Credential> |
getCredentials()
Get the configured keys and certificates lumped together as credentials.
|
Class<?> |
getObjectType() |
void |
setBackingResource(String resource)
Set the backing resource.
|
void |
setCertificates(List<org.springframework.core.io.Resource> certs)
Set the resources which we will convert into certificates.
|
void |
setHttpClient(HttpClient client)
Set the
HttpClient instance. |
void |
setHttpClientContextHandler(HttpClientContextHandler handler)
Set a handler to manipulate the
HttpClientContext. |
void |
setPublicKeys(List<org.springframework.core.io.Resource> keys)
Set the resources which we will convert into certificates.
|
void |
setURL(URL url)
Set the URL.
|
void |
setUsePKIX(boolean flag)
Set whether to use a PKIX trust engine.
|
void |
setVerifyDepth(Integer depth)
Set the verify depth.
|
@Nonnull private org.slf4j.Logger log
@Nullable private HttpClient httpClient
@Nullable private HttpClientContextHandler httpClientContextHandler
@Nonnull private List<org.springframework.core.io.Resource> keyResources
@Nonnull private List<org.springframework.core.io.Resource> certificateResources
private boolean usePKIX
public void setBackingResource(@Nullable@NotEmpty String resource)
resource - the backing resourcepublic void setHttpClient(@Nullable HttpClient client)
HttpClient instance.client - client instancepublic void setHttpClientContextHandler(@Nullable HttpClientContextHandler handler)
HttpClientContext.handler - the handler to installpublic void setPublicKeys(@Nullable List<org.springframework.core.io.Resource> keys)
keys - the resourcespublic void setCertificates(@Nullable List<org.springframework.core.io.Resource> certs)
certs - the resourcespublic void setUsePKIX(boolean flag)
flag - flag to setpublic void setVerifyDepth(@Nullable Integer depth)
depth - value to set@Nullable @NonnullElements protected List<Credential> getCredentials()
@Nullable @NonnullElements protected List<X509Certificate> getCertificates()
public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<HTTPResource>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<HTTPResource>protected HTTPResource createInstance() throws Exception
createInstance in class org.springframework.beans.factory.config.AbstractFactoryBean<HTTPResource>ExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.