Interface OpenSaml2Serializer

All Known Implementing Classes:
OpenSaml2SerializerImpl

public interface OpenSaml2Serializer
Interface describing the generic methods of OpenSaml2Serializer for the templated type T.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the number of loaded marshallers.
    byte[]
    serializeToByteArray(org.opensaml.core.xml.XMLObject aObject)
    Method to serialize an XMLObject to an byte array.
    serializeToString(org.opensaml.core.xml.XMLObject aObject)
    Method to serialize an XMLObject to a String.
    serializeToXml(org.opensaml.core.xml.XMLObject aObject)
    Method to serialize an XMLObject to an xml element.
  • Method Details

    • getLoadedMarshallerCount

      Integer getLoadedMarshallerCount()
      Gets the number of loaded marshallers.
      Returns:
      the marshaller count
    • serializeToByteArray

      byte[] serializeToByteArray(org.opensaml.core.xml.XMLObject aObject) throws SerializeException
      Method to serialize an XMLObject to an byte array.
      Parameters:
      aObject - the XMLObject.
      Returns:
      the serialized byte array.
      Throws:
      SerializeException - throw on occuring errors.
    • serializeToString

      String serializeToString(org.opensaml.core.xml.XMLObject aObject) throws SerializeException
      Method to serialize an XMLObject to a String.
      Parameters:
      aObject - the XMLObject.
      Returns:
      the serialized String.
      Throws:
      SerializeException - throw on occuring errors.
    • serializeToXml

      Element serializeToXml(org.opensaml.core.xml.XMLObject aObject) throws SerializeException
      Method to serialize an XMLObject to an xml element.
      Parameters:
      aObject - the XMLObject.
      Returns:
      the serialized xml element.
      Throws:
      SerializeException - throw on occuring errors.