*
* @since 1.2
*/
public static Collection<X509CRL> decodeCRLs(File crls) throws CRLException{
if(!crls.exists()){
throw new CRLException("CRL file " + crls.getAbsolutePath() + " does not exist");
}
if(!crls.canRead()){
throw new CRLException("CRL file " + crls.getAbsolutePath() + " is not readable");
}
try{
return decodeCRLs(DatatypeHelper.fileToByteArray(crls));
}catch(IOException e){
throw new CRLException("Error reading CRL file " + crls.getAbsolutePath(), e);
}
}