/** * Method getX509Certificate * * @return The certificate contained in this KeyInfo * @throws KeyResolverException */ public X509Certificate getX509Certificate() throws KeyResolverException { // First search using the individual resolvers from the user X509Certificate cert = this.getX509CertificateFromInternalResolvers(); if (cert != null) { LOG.debug("I could find a X509Certificate using the per-KeyInfo key resolvers"); return cert; } LOG.debug("I couldn't find a X509Certificate using the per-KeyInfo key resolvers"); // Then use the system-wide Resolvers cert = this.getX509CertificateFromStaticResolvers(); if (cert != null) { LOG.debug("I could find a X509Certificate using the system-wide key resolvers"); return cert; } LOG.debug("I couldn't find a X509Certificate using the system-wide key resolvers"); return null; }