/** * This method returns the public key. * * @return If the KeyInfo contains a PublicKey node * @throws KeyResolverException */ public PublicKey getPublicKey() throws KeyResolverException { PublicKey pk = this.getPublicKeyFromInternalResolvers(); if (pk != null) { LOG.debug("I could find a key using the per-KeyInfo key resolvers"); return pk; } LOG.debug("I couldn't find a key using the per-KeyInfo key resolvers"); pk = this.getPublicKeyFromStaticResolvers(); if (pk != null) { LOG.debug("I could find a key using the system-wide key resolvers"); return pk; } LOG.debug("I couldn't find a key using the system-wide key resolvers"); return null; }