Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl

private boolean bspCompliant;

private boolean addInclusivePrefixes;

private boolean securementUseDerivedKey;

private CallbackHandler samlCallbackHandler;
Expand Down Expand Up @@ -503,7 +505,16 @@ public void setBspCompliant(boolean bspCompliant) {
this.handler.setOption(WSHandlerConstants.IS_BSP_COMPLIANT, bspCompliant);
this.bspCompliant = bspCompliant;
}


/**
* Sets whether to add an InclusiveNamespaces PrefixList as a CanonicalizationMethod child
* when generating Signatures using WSConstants.C14N_EXCL_OMIT_COMMENTS. Default is {@code true}.
*/
public void setAddInclusivePrefixes(boolean addInclusivePrefixes) {
this.handler.setOption(WSHandlerConstants.ADD_INCLUSIVE_PREFIXES, addInclusivePrefixes);
this.addInclusivePrefixes = addInclusivePrefixes;
}

/**
* Sets whether the RSA 1.5 key transport algorithm is allowed.
*/
Expand Down Expand Up @@ -643,6 +654,9 @@ protected RequestData initializeValidationRequestData(MessageContext messageCont
if (requestData.getBSPEnforcer() != null) {
requestData.getBSPEnforcer().setDisableBSPRules(!bspCompliant);
}

requestData.setAddInclusivePrefixes(addInclusivePrefixes);

// allow for qualified password types for .Net interoperability
requestData.setAllowNamespaceQualifiedPasswordTypes(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ protected Wss4jSecurityInterceptor prepareInterceptor(String actions, boolean va
interceptor.setValidationCallbackHandler(callbackHandler);

interceptor.setBspCompliant(false);

interceptor.setAddInclusivePrefixes(false);

interceptor.afterPropertiesSet();
return interceptor;
Expand Down