Class OpenSaml2SerializerImpl
java.lang.Object
org.projecthusky.xua.serialization.impl.OpenSaml2SerializerImpl
- All Implemented Interfaces:
OpenSaml2Serializer
Implementation class of OpenSaml2Serializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the number of loaded marshallers.byte[]
serializeToByteArray
(org.opensaml.core.xml.XMLObject aXmlObject) Method to serialize an XMLObject to an byte array.serializeToString
(org.opensaml.core.xml.XMLObject aXmlObject) Method to serialize an XMLObject to a String.serializeToXml
(org.opensaml.core.xml.XMLObject aXmlObject) Method to serialize an XMLObject to an xml element.
-
Constructor Details
-
OpenSaml2SerializerImpl
public OpenSaml2SerializerImpl()
-
-
Method Details
-
getLoadedMarshallerCount
Gets the number of loaded marshallers.- Specified by:
getLoadedMarshallerCount
in interfaceOpenSaml2Serializer
- Returns:
- the marshaller count
- See Also:
-
serializeToByteArray
public byte[] serializeToByteArray(org.opensaml.core.xml.XMLObject aXmlObject) throws SerializeException Method to serialize an XMLObject to an byte array.- Specified by:
serializeToByteArray
in interfaceOpenSaml2Serializer
- Parameters:
aXmlObject
- the XMLObject.- Returns:
- the serialized byte array.
- Throws:
SerializeException
- throw on occuring errors.- See Also:
-
serializeToString
public String serializeToString(org.opensaml.core.xml.XMLObject aXmlObject) throws SerializeException Method to serialize an XMLObject to a String.- Specified by:
serializeToString
in interfaceOpenSaml2Serializer
- Parameters:
aXmlObject
- the XMLObject.- Returns:
- the serialized String.
- Throws:
SerializeException
- throw on occuring errors.- See Also:
-
serializeToXml
Method to serialize an XMLObject to an xml element.- Specified by:
serializeToXml
in interfaceOpenSaml2Serializer
- Parameters:
aXmlObject
- the XMLObject.- Returns:
- the serialized xml element.
- Throws:
SerializeException
- throw on occuring errors.- See Also:
-