*/
public class KeyInfoReferenceMarshaller extends AbstractXMLSignatureMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
KeyInfoReference ref = (KeyInfoReference) xmlObject;
if (ref.getID() != null) {
domElement.setAttributeNS(null, KeyInfoReference.ID_ATTRIB_NAME, ref.getID());
domElement.setIdAttributeNS(null, KeyInfoReference.ID_ATTRIB_NAME, true);
}
if (ref.getURI() != null) {
domElement.setAttributeNS(null, KeyInfoReference.URI_ATTRIB_NAME, ref.getURI());
}
}