@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 |
|---|---|
protected java.security.cert.X509CRL |
fetchCRLFromLdap(java.lang.Object r)
Downloads a CRL from given LDAP url.
|
protected java.security.cert.X509CRL |
fetchInternal(java.lang.Object r)
Fetch the resource.
|
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) |
fetch, fetchprotected org.ldaptive.SearchExecutor searchExecutor
protected org.ldaptive.ConnectionConfig connectionConfig
protected LdaptiveResourceCRLFetcher()
public LdaptiveResourceCRLFetcher(@NotNull
org.ldaptive.ConnectionConfig connectionConfig,
@NotNull
org.ldaptive.SearchExecutor searchExecutor)
connectionConfig - the connection configurationsearchExecutor - the search executorprotected java.security.cert.X509CRL fetchInternal(java.lang.Object r)
throws java.lang.Exception
ResourceCRLFetcherfetchInternal in class ResourceCRLFetcherr - the resource which can be URL, URI, String
or AbstractResourcejava.lang.Exception - the exceptionprotected java.security.cert.X509CRL fetchCRLFromLdap(java.lang.Object r)
throws java.lang.Exception
r - the resource that is the ldap url.java.lang.Exception - 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.lang.Exception
aval - the attribute, which may be null if it's not foundjava.lang.Exception - if attribute not found or could could not be decoded.protected 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)