Interface Serializer<T>

Type Parameters:
T -
the type of instance the methods should deal with.
der Typ der Instanz auf welchen die Methoden Anwendung finden.
All Known Implementing Classes:
ArtifactResolveSerializerImpl, ArtifactResponseSerializerImpl, AssertionSerializerImpl, AttributeSerializerImpl, AuthnRequestSerializerImpl, BaseSerializerImpl, EncryptedAssertionSerializerImpl, PrivacyPolicyFeedResponseSerializerImpl, PrivacyPolicyFeedSerializerImpl, PrivacyPolicyQueryResponseSerializerImpl, PrivacyPolicyQuerySerializerImpl, ResponseSerializerImpl, UsernameTokenSerializerImpl, XUserAssertionRequestSerializerImpl, XUserAssertionResponseSerializerImpl

public interface Serializer<T>
Typed interface describing some generic methods for serializing model instances to different serialized forms.
Typisiertes Interface welches die Methoden für die Serialisierung von Modell Instanzen in verschiedene Formen der Serialisierung beschreibt.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    toXmlByteArray(T aSecurityObject)
    Method to serialize the instance of T into an byte array. Methode um eine Instanz von T in ein Byte Array zu serialisieren.
    toXmlElement(T aSecurityObject)
    Method to serialize the instance of T into an xml structure. Methode um eine Instanz von T in eine XML Struktur zu serialisieren.
    toXmlString(T aSecurityObject)
    Method to serialize the instance of T into a string. Methode um eine Instanz von T in einen string zu serialisieren.
  • Method Details

    • toXmlByteArray

      byte[] toXmlByteArray(T aSecurityObject) throws SerializeException
      Method to serialize the instance of T into an byte array.
      Methode um eine Instanz von T in ein Byte Array zu serialisieren.
      Parameters:
      aSecurityObject -
      the instance to be serialized
      die Instanz die serialisert werden soll
      Returns:
      the serialized instance as byte array
      die serialisierte Instanz als Byte Array
      Throws:
      SerializeException -
      will be thrown when an error occures serializing the object
      wird geworfen wenn ein Fehler beim Serialisieren des Objektes auftritt
    • toXmlElement

      Element toXmlElement(T aSecurityObject) throws SerializeException
      Method to serialize the instance of T into an xml structure.
      Methode um eine Instanz von T in eine XML Struktur zu serialisieren.
      Parameters:
      aSecurityObject -
      the isntance to be serialized
      die Instanz die serialisert werden soll
      Returns:
      the serialized instance as xml structure
      die serialisierte Instanz als XML Struktur
      Throws:
      SerializeException -
      will be thrown when an error occures serializing the object
      wird geworfen wenn ein Fehler beim Serialisieren des Objektes auftritt
    • toXmlString

      String toXmlString(T aSecurityObject) throws SerializeException
      Method to serialize the instance of T into a string.
      Methode um eine Instanz von T in einen string zu serialisieren.
      Parameters:
      aSecurityObject -
      the instance to be serialized
      die Instanz die serialisert werden soll
      Returns:
      the serialized instance a string
      die serialisierte Instanz als string
      Throws:
      SerializeException -
      will be thrown when an error occures serializing the object
      wird geworfen wenn ein Fehler beim Serialisieren des Objektes auftritt