private X509Certificate[] getX509CertificatesFromXKMS(Applications application, String id) {
LOG.fine(String.format("Getting public certificate from XKMS for application:%s; id: %s",
application, id));
if (id == null) {
throw new CryptoProviderException("Id is not specified for certificate request");
}
// Try local cache first
if (xkmsClientCache != null) {
XKMSCacheToken cachedToken = xkmsClientCache.get(id.toLowerCase());