/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { if (Action.NAMESPACEATTRIB_NAME.equals(attribute.getLocalName())) { Action action = (Action) samlObject; action.setNamespace(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }
/** * Create an Action object * * @param actionBean of type SamlAction * @return an Action object */ @SuppressWarnings("unchecked") public static Action createSamlv1Action(ActionBean actionBean) { if (actionElementV1Builder == null) { actionElementV1Builder = (SAMLObjectBuilder<Action>) builderFactory.getBuilder(Action.DEFAULT_ELEMENT_NAME); } Action actionElement = actionElementV1Builder.buildObject(); actionElement.setNamespace(actionBean.getActionNamespace()); actionElement.setContents(actionBean.getContents()); return actionElement; }
/** * Create an Action object * * @param actionBean of type SamlAction * @return an Action object */ @SuppressWarnings("unchecked") public static Action createSamlv1Action(ActionBean actionBean) { if (actionElementV1Builder == null) { actionElementV1Builder = (SAMLObjectBuilder<Action>) builderFactory.getBuilder(Action.DEFAULT_ELEMENT_NAME); } Action actionElement = actionElementV1Builder.buildObject(); actionElement.setNamespace(actionBean.getActionNamespace()); actionElement.setContents(actionBean.getContents()); return actionElement; }