@RefreshScope @Component(value="ldaptiveResourceCRLFetcher") public class LdaptiveResourceCRLFetcher extends ResourceCRLFetcher
| Modifier and Type | Field and Description |
|---|---|
protected org.ldaptive.ConnectionConfig |
connectionConfig
The connection config to prep for connections.
|
protected org.ldaptive.SearchExecutor |
searchExecutor
Search exec that looks for the attribute.
|
logger| Modifier | Constructor and Description |
|---|---|
protected |
LdaptiveResourceCRLFetcher()
Serialization support.
|
|
LdaptiveResourceCRLFetcher(org.ldaptive.ConnectionConfig connectionConfig,
org.ldaptive.SearchExecutor searchExecutor)
Instantiates a new Ldap resource cRL fetcher.
|
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509CRL |
fetch(org.springframework.core.io.Resource crl)
Fetch the resource.
|
java.security.cert.X509CRL |
fetch(java.lang.String crl)
Fetch the resource.
|
java.security.cert.X509CRL |
fetch(java.net.URI crl)
Fetch the resource.
|
java.security.cert.X509CRL |
fetch(java.net.URL crl)
Fetch the resource.
|
protected java.security.cert.X509CRL |
fetchCRLFromLdap(java.lang.Object r)
Downloads a CRL from given LDAP url.
|
protected java.security.cert.X509CRL |
fetchX509CRLFromAttribute(org.ldaptive.LdapAttribute aval)
Gets x509 cRL from attribute.
|
protected org.ldaptive.Response<org.ldaptive.SearchResult> |
performLdapSearch(java.lang.String ldapURL)
Executes an LDAP search against the supplied URL.
|
protected org.ldaptive.ConnectionFactory |
prepareConnectionFactory(java.lang.String ldapURL)
Prepare a new LDAP connection.
|
void |
setConnectionConfig(org.ldaptive.ConnectionConfig connectionConfig) |
void |
setSearchExecutor(org.ldaptive.SearchExecutor searchExecutor) |
fetchprotected org.ldaptive.SearchExecutor searchExecutor
protected org.ldaptive.ConnectionConfig connectionConfig
protected LdaptiveResourceCRLFetcher()
public LdaptiveResourceCRLFetcher(org.ldaptive.ConnectionConfig connectionConfig,
org.ldaptive.SearchExecutor searchExecutor)
connectionConfig - the connection configurationsearchExecutor - the search executorpublic java.security.cert.X509CRL fetch(org.springframework.core.io.Resource crl)
throws java.io.IOException,
java.security.cert.CRLException,
java.security.cert.CertificateException
ResourceCRLFetcherfetch in interface CRLFetcherfetch in class ResourceCRLFetchercrl - the resourcejava.io.IOException - the exception thrown if resources cant be fetchedjava.security.cert.CRLException - the exception thrown if resources cant be fetchedjava.security.cert.CertificateException - the exception thrown if resources cant be fetchedpublic java.security.cert.X509CRL fetch(java.net.URI crl)
throws java.io.IOException,
java.security.cert.CRLException,
java.security.cert.CertificateException
ResourceCRLFetcherfetch in interface CRLFetcherfetch in class ResourceCRLFetchercrl - the resourcejava.io.IOException - the exception thrown if resources cant be fetchedjava.security.cert.CRLException - the exception thrown if resources cant be fetchedjava.security.cert.CertificateException - the exception thrown if resources cant be fetchedpublic java.security.cert.X509CRL fetch(java.net.URL crl)
throws java.io.IOException,
java.security.cert.CRLException,
java.security.cert.CertificateException
ResourceCRLFetcherfetch in interface CRLFetcherfetch in class ResourceCRLFetchercrl - the resourcejava.io.IOException - the exception thrown if resources cant be fetchedjava.security.cert.CRLException - the exception thrown if resources cant be fetchedjava.security.cert.CertificateException - the exception thrown if resources cant be fetchedpublic java.security.cert.X509CRL fetch(java.lang.String crl)
throws java.io.IOException,
java.security.cert.CRLException,
java.security.cert.CertificateException
ResourceCRLFetcherfetch in interface CRLFetcherfetch in class ResourceCRLFetchercrl - the resourcejava.io.IOException - the exception thrown if resources cant be fetchedjava.security.cert.CRLException - the exception thrown if resources cant be fetchedjava.security.cert.CertificateException - the exception thrown if resources cant be fetchedprotected java.security.cert.X509CRL fetchCRLFromLdap(java.lang.Object r)
throws java.security.cert.CertificateException,
java.io.IOException,
java.security.cert.CRLException
r - the resource that is the ldap url.java.io.IOException - the exception thrown if resources cant be fetchedjava.security.cert.CRLException - the exception thrown if resources cant be fetchedjava.security.cert.CertificateException - if connection to ldap fails, or attribute to get the revocation list is unavailableprotected java.security.cert.X509CRL fetchX509CRLFromAttribute(org.ldaptive.LdapAttribute aval)
throws java.security.cert.CertificateException,
java.io.IOException,
java.security.cert.CRLException
aval - the attribute, which may be null if it's not foundjava.io.IOException - the exception thrown if resources cant be fetchedjava.security.cert.CRLException - the exception thrown if resources cant be fetchedjava.security.cert.CertificateException - if connection to ldap fails, or attribute to get the revocation list is unavailableprotected org.ldaptive.Response<org.ldaptive.SearchResult> performLdapSearch(java.lang.String ldapURL)
throws org.ldaptive.LdapException
ldapURL - to searchorg.ldaptive.LdapException - if an error occurs performing the searchprotected org.ldaptive.ConnectionFactory prepareConnectionFactory(java.lang.String ldapURL)
ldapURL - the ldap uRL@Autowired(required=false)
public void setSearchExecutor(@Qualifier(value="ldaptiveResourceCRLSearchExecutor")
org.ldaptive.SearchExecutor searchExecutor)
@Autowired(required=false)
public void setConnectionConfig(@Qualifier(value="ldaptiveResourceCRLConnectionConfig")
org.ldaptive.ConnectionConfig connectionConfig)