Class SkinnySamlUtil
java.lang.Object
swiss.trustbroker.common.saml.util.SkinnySamlUtil
Skinny SAML messages handling requires rewriting the opensaml output DOM.
It's recommended to use the cleaner opensaml representation but large SAML messages might be blocked on peers.
- The fun of SAML XML-Sec C14N: AttributeValue of type XSString or XSInteger causing signature validation to fail
- AD connect requirements: Use a SAML IdP for SSO Federation Metadata
- ADFS interop: Shibboleth IDP
- This manipulation is configured in XB using CanonicalizationMethod:
http://www.w3.org/2001/10/xml-exc-c14n#WithSkinnyPatches - Standards this is based on: XML Canonicalization
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdiscardXmlDocHeader(String messageXml) static voideliminateCertWhitespace(org.opensaml.xmlsec.signature.KeyInfo keyInfo) static voideliminateCertWhitespace(Element element) static booleanisPatchedResponse(org.opensaml.core.xml.XMLObject message) static voidprepareSAMLObject(org.opensaml.xmlsec.signature.SignableXMLObject object, String c14nAlgo) static voidprepareSAMLSignature(org.opensaml.xmlsec.signature.Signature signature, String c14nAlgo)
-
Field Details
-
ALGO_ID_C14N_EXCL_WITH_SKINNY_PATCHES
- See Also:
-
-
Method Details
-
prepareSAMLSignature
public static void prepareSAMLSignature(org.opensaml.xmlsec.signature.Signature signature, String c14nAlgo) -
prepareSAMLObject
public static void prepareSAMLObject(org.opensaml.xmlsec.signature.SignableXMLObject object, String c14nAlgo) -
eliminateCertWhitespace
-
eliminateCertWhitespace
public static void eliminateCertWhitespace(org.opensaml.xmlsec.signature.KeyInfo keyInfo) -
isPatchedResponse
public static boolean isPatchedResponse(org.opensaml.core.xml.XMLObject message) -
discardXmlDocHeader
-