use of org.apache.wss4j.common.token.Reference in project cxf by apache.
the class STSInvoker method writeSecurityTokenReference.
Element writeSecurityTokenReference(W3CDOMStreamWriter writer, String id, String refValueType) {
Reference ref = new Reference(writer.getDocument());
ref.setURI(id);
if (refValueType != null) {
ref.setValueType(refValueType);
}
SecurityTokenReference str = new SecurityTokenReference(writer.getDocument());
str.addWSSENamespace();
str.setReference(ref);
writer.getCurrentNode().appendChild(str.getElement());
return str.getElement();
}
Aggregations