support/cas-server-support-x509/src/main/java/org/apereo/cas/adaptors/x509/authentication/ResourceCRLFetcher.java
/**
     * Fetch the resource. Designed so that extensions
     * can decide how the resource should be retrieved.
     *
     * @param crl the resource
     * @return the x 509 cRL
     * @throws IOException the exception thrown if resources cant be fetched
     * @throws CRLException the exception thrown if resources cant be fetched
     * @throws CertificateException the exception thrown if resources cant be fetched
     */
Fetch the resource. Designed so that extensions
can decide how the resource should be retrieved.


Fetch the resource . Designed so that extensions can decide how the resource should be retrieved .
@Override
    public X509CRL fetch(final Resource crl) throws IOException, CRLException, CertificateException {
        final Set<X509CRL> results = fetch(Collections.singleton(crl));
        if (!results.isEmpty()) {
            return results.iterator().next();
        }
        logger.warn("Unable to fetch {}", crl);
        return null;
    }
@ Override public X509CRL fetch ( final Resource crl ) throws IOException , CRLException , CertificateException { final Set < X509CRL > results = fetch ( Collections . singleton ( crl ) ) ; if ( ! results . isEmpty ( ) ) { return results . iterator ( ) . next ( ) ; } logger . warn ( "Unable to fetch {}" , crl ) ; return null ; }
Fetch the resource.
Fetch the resource .