Interface OpenSaml2Deserializer<T>

Type Parameters:
T - the type
All Known Implementing Classes:
OpenSaml2DeserializerImpl

public interface OpenSaml2Deserializer<T>
Interface describing the generic methods of OpenSaml2Deserializer for the templated type T.
  • Method Details

    • deserializeFromByteArray

      T deserializeFromByteArray(byte[] aXmlBytes) throws DeserializeException
      Generic method to deserialize type from byte array to instance of T.
      Parameters:
      aXmlBytes - the byte array
      Returns:
      the instance of T
      Throws:
      DeserializeException - will be thrown on deserializing error
    • deserializeFromByteArrayToXmlElement

      Element deserializeFromByteArrayToXmlElement(byte[] aXmlBytes) throws DeserializeException
      Generic method to deserialize type from byte array to xmlElement
      Parameters:
      aXmlBytes - the byte array
      Returns:
      xmlElement instance of T
      Throws:
      DeserializeException - will be thrown on deserializing error
    • deserializeFromString

      T deserializeFromString(String aXmlString) throws DeserializeException
      Generic method to deserialize type from string to instance of T.
      Parameters:
      aXmlString - the string
      Returns:
      the instance of T
      Throws:
      DeserializeException - will be thrown on deserializing error
    • deserializeFromXml

      T deserializeFromXml(Element aXmlElement) throws DeserializeException
      Generic method to deserialize type from xmlElement to instance of T.
      Parameters:
      aXmlElement - the xmlElement
      Returns:
      the instance of T
      Throws:
      DeserializeException - will be thrown on deserializing error