/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { Action action = (Action) samlObject; if (attribute.getLocalName().equals(Action.NAMEPSACE_ATTRIB_NAME)) { action.setNamespace(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** * Create an Action object * * @param actionBean An ActionBean instance * @return an Action object */ @SuppressWarnings("unchecked") public static Action createSamlAction(ActionBean actionBean) { if (actionElementBuilder == null) { actionElementBuilder = (SAMLObjectBuilder<Action>) builderFactory.getBuilder(Action.DEFAULT_ELEMENT_NAME); } Action actionElement = actionElementBuilder.buildObject(); actionElement.setNamespace(actionBean.getActionNamespace()); if (actionBean.getActionNamespace() == null) { actionElement.setNamespace("urn:oasis:names:tc:SAML:1.0:action:rwedc-negation"); } actionElement.setAction(actionBean.getContents()); return actionElement; }