Author: jonananas
Date: 2011-05-03 03:04:35 -0400 (Tue, 03 May 2011)
New Revision: 921
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/util/SAMLMetadataUtil.java
Log:
PLFED-179 Loading of saml-entities.xml fails when certificate contains tabs
getCerticate now removes all whitespace from certificate before decoding
Modified:
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/util/SAMLMetadataUtil.java
===================================================================
---
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/util/SAMLMetadataUtil.java 2011-04-26
18:54:27 UTC (rev 920)
+++
federation/trunk/picketlink-fed-core/src/main/java/org/picketlink/identity/federation/core/saml/v2/util/SAMLMetadataUtil.java 2011-05-03
07:04:35 UTC (rev 921)
@@ -76,7 +76,7 @@
{
Node certNode = nl.getFirstChild();
String certNodeValue = certNode.getNodeValue();
- cert = XMLSignatureUtil.getX509CertificateFromKeyInfoString(
certNodeValue.trim() );
+ cert = XMLSignatureUtil.getX509CertificateFromKeyInfoString(
certNodeValue.replaceAll("\\s", ""));
break;
}
}
Show replies by date