Class WSS4JXSBase64BinaryUnmarshaller

  • All Implemented Interfaces:
    org.opensaml.core.xml.io.Unmarshaller

    public final class WSS4JXSBase64BinaryUnmarshaller
    extends org.opensaml.core.xml.schema.impl.XSBase64BinaryUnmarshaller
    Override the OpenSAML BASE-64 unmarshaller for X.509 Certificates, to fix a test failure in CXF due to the fact that an X.509 Certificate is only partially unmarshalled. https://issues.apache.org/jira/browse/WSS-695
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void unmarshallTextContent​(org.opensaml.core.xml.XMLObject xmlObject, Text content)
      A fix to call Text.getWholeText() instead of Text.getData(), as otherwise with the SAMLRenewTest in CXF's STS systests, the X.509 Certificate is only partially unmarshalled.
      • Methods inherited from class org.opensaml.core.xml.schema.impl.XSBase64BinaryUnmarshaller

        processElementContent
      • Methods inherited from class org.opensaml.core.xml.io.AbstractXMLObjectUnmarshaller

        buildXMLObject, checkIDAttribute, processAttribute, processChildElement, processUnknownAttribute, unmarshall, unmarshallAttribute, unmarshallChildElement, unmarshallNamespaceAttribute, unmarshallSchemaInstanceAttributes
    • Constructor Detail

      • WSS4JXSBase64BinaryUnmarshaller

        public WSS4JXSBase64BinaryUnmarshaller()
    • Method Detail

      • unmarshallTextContent

        protected void unmarshallTextContent​(org.opensaml.core.xml.XMLObject xmlObject,
                                             Text content)
                                      throws org.opensaml.core.xml.io.UnmarshallingException
        A fix to call Text.getWholeText() instead of Text.getData(), as otherwise with the SAMLRenewTest in CXF's STS systests, the X.509 Certificate is only partially unmarshalled.
        Overrides:
        unmarshallTextContent in class org.opensaml.core.xml.io.AbstractXMLObjectUnmarshaller
        Throws:
        org.opensaml.core.xml.io.UnmarshallingException