Class SamlLog
java.lang.Object
se.swedenconnect.opensaml.common.utils.SamlLog
Utilities for logging SAML messages.
- Author:
- Martin Lindström (martin@idsec.se)
-
Method Summary
Modifier and TypeMethodDescriptiontoString
(T object) Returns the given SAML object in its "pretty print" XML string form.toStringSafe
(T object) The same asObject.toString()
but the method never throws (returns the empty string instead).
-
Method Details
-
toString
Returns the given SAML object in its "pretty print" XML string form.- Type Parameters:
T
- the type of object to "print"- Parameters:
object
- the object to display as a string- Returns:
- the XML as a string
- Throws:
MarshallingException
- for marshalling errors
-
toStringSafe
The same asObject.toString()
but the method never throws (returns the empty string instead). Useful for logging statements.- Type Parameters:
T
- the type of object to "print"- Parameters:
object
- the object to display as a string- Returns:
- the XML as a string
-