public class StaticPKIXFactoryBean extends AbstractComponentAwareFactoryBean<PKIXX509CredentialTrustEngine>
| Modifier and Type | Field and Description |
|---|---|
private List<org.springframework.core.io.Resource> |
certificateResources
Certificate resources.
|
private boolean |
checkNames
Whether to enable name checking.
|
private List<org.springframework.core.io.Resource> |
crlResources
CRL resources.
|
private org.slf4j.Logger |
log
log.
|
private Set<String> |
trustedNames
Explicit subject name(s) to match.
|
private Integer |
verifyDepth
Verification depth.
|
| Constructor and Description |
|---|
StaticPKIXFactoryBean()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected PKIXX509CredentialTrustEngine |
doCreateInstance() |
protected List<X509Certificate> |
getCertificates()
Get the configured certificates.
|
protected List<X509CRL> |
getCRLs()
Get the configured CRL list.
|
Class<?> |
getObjectType() |
void |
setCertificates(List<org.springframework.core.io.Resource> certs)
Set the resources which we will convert into certificates.
|
void |
setCheckNames(boolean flag)
Set whether the perform name checking in the PKIX layer.
|
void |
setCRLs(List<org.springframework.core.io.Resource> crls)
Set the resources which we will convert into CRLs.
|
void |
setTrustedNames(Collection<String> names)
Set explicitly trusted names to match against credential.
|
void |
setVerifyDepth(int depth)
Set the verify depth.
|
createInstance, destroyInstance@Nonnull private org.slf4j.Logger log
@Nullable private List<org.springframework.core.io.Resource> certificateResources
@Nullable private List<org.springframework.core.io.Resource> crlResources
private boolean checkNames
public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<PKIXX509CredentialTrustEngine>getObjectType in class org.springframework.beans.factory.config.AbstractFactoryBean<PKIXX509CredentialTrustEngine>public void setCertificates(@Nullable List<org.springframework.core.io.Resource> certs)
certs - the resourcespublic void setCRLs(@Nullable List<org.springframework.core.io.Resource> crls)
crls - the resourcespublic void setVerifyDepth(int depth)
depth - value to setpublic void setCheckNames(boolean flag)
flag - flag to setpublic void setTrustedNames(@Nullable@NonnullElements Collection<String> names)
names - explicitly trusted names@Nullable @NonnullElements protected List<X509Certificate> getCertificates()
@Nonnull @NonnullElements protected List<X509CRL> getCRLs()
protected PKIXX509CredentialTrustEngine doCreateInstance() throws Exception
doCreateInstance in class AbstractComponentAwareFactoryBean<PKIXX509CredentialTrustEngine>ExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.