Class WSS4JXSBase64BinaryUnmarshaller

java.lang.Object
org.opensaml.core.xml.io.AbstractXMLObjectUnmarshaller
org.opensaml.core.xml.schema.impl.XSBase64BinaryUnmarshaller
org.apache.wss4j.common.saml.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
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WSS4JXSBase64BinaryUnmarshaller

      public WSS4JXSBase64BinaryUnmarshaller()
  • Method Details

    • 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