X509Certificate cert = crypto.getCertificates(encryptionUser)[0];
encrKeyBuilder.setKeyIdentifierType(WSConstants.THUMBPRINT_IDENTIFIER);
try {
encrKeyBuilder.setUseThisCert(cert);
encrKeyBuilder.prepare(config.getDocument(), crypto);
} catch (WSSecurityException e) {
throw new TrustException(
"errorInBuildingTheEncryptedKeyForPrincipal",
new String[] { cert.getSubjectDN().getName()}, e);
}