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 TypeMethodDescriptionbyte[]
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
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 serializeddie Instanz die serialisert werden soll- Returns:
- the serialized instance as byte arraydie serialisierte Instanz als Byte Array
- Throws:
SerializeException
-will be thrown when an error occures serializing the objectwird geworfen wenn ein Fehler beim Serialisieren des Objektes auftritt
-
toXmlElement
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 serializeddie Instanz die serialisert werden soll- Returns:
- the serialized instance as xml structuredie serialisierte Instanz als XML Struktur
- Throws:
SerializeException
-will be thrown when an error occures serializing the objectwird geworfen wenn ein Fehler beim Serialisieren des Objektes auftritt
-
toXmlString
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 serializeddie Instanz die serialisert werden soll- Returns:
- the serialized instance a stringdie serialisierte Instanz als string
- Throws:
SerializeException
-will be thrown when an error occures serializing the objectwird geworfen wenn ein Fehler beim Serialisieren des Objektes auftritt
-