Search in sources :

Example 1 with Reference

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();
}
Also used : SecurityTokenReference(org.apache.wss4j.common.token.SecurityTokenReference) Reference(org.apache.wss4j.common.token.Reference) SecurityTokenReference(org.apache.wss4j.common.token.SecurityTokenReference)

Aggregations

Reference (org.apache.wss4j.common.token.Reference)1 SecurityTokenReference (org.apache.wss4j.common.token.SecurityTokenReference)1