*/
public class SessionKeyMarshaller extends AbstractSAMLObjectMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
SessionKey key = (SessionKey) samlObject;
if (key.isSOAP11MustUnderstandXSBoolean() != null) {
XMLHelper.marshallAttribute(SessionKey.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
key.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (key.getSOAP11Actor() != null) {
XMLHelper.marshallAttribute(SessionKey.SOAP11_ACTOR_ATTR_NAME,
key.getSOAP11Actor(), domElement, false);
}
if (key.getAlgorithm() != null) {
domElement.setAttributeNS(null, SessionKey.ALGORITHM_ATTRIB_NAME, key.getAlgorithm());
}
}