Methods Summary |
---|
public void | addEXC14n(com.sun.xml.wss.impl.policy.mls.SignatureTarget target)
SignatureTarget.Transform tr = target.newSignatureTransform();
if(algorithmSuite != null && algorithmSuite.getAdditionalProps().contains(Constants.InclusiveC14N)){
tr.setTransform(CanonicalizationMethod.INCLUSIVE);
} else{
tr.setTransform(CanonicalizationMethod.EXCLUSIVE);
}
if(algorithmSuite != null &&
algorithmSuite.getAdditionalProps().contains(Constants.InclusiveC14NWithCommentsForTransforms)){
tr.setTransform(CanonicalizationMethod.INCLUSIVE_WITH_COMMENTS);
} else if(algorithmSuite != null &&
algorithmSuite.getAdditionalProps().contains(Constants.ExclusiveC14NWithCommentsForTransforms)){
tr.setTransform(CanonicalizationMethod.EXCLUSIVE_WITH_COMMENTS);
}
target.addTransform(tr);
|
public void | addSTRTransform(com.sun.xml.wss.impl.policy.mls.SignatureTarget target)
SignatureTarget.Transform tr = target.newSignatureTransform();
tr.setTransform(MessageConstants.STR_TRANSFORM_URI);
target.addTransform(tr);
tr.setAlgorithmParameters(new Parameter("CanonicalizationMethod",CanonicalizationMethod.EXCLUSIVE));
|
public com.sun.xml.wss.impl.policy.mls.SignatureTarget | newQNameSignatureTarget(javax.xml.namespace.QName name)
SignatureTarget target = new SignatureTarget();
target.setType(SignatureTarget.TARGET_TYPE_VALUE_QNAME);
target.setDigestAlgorithm(algorithmSuite.getDigestAlgorithm());
target.setContentOnly(contentOnly);
target.setEnforce(enforce);
target.setQName(name);
addEXC14n(target);
return target;
|
public com.sun.xml.wss.impl.policy.mls.SignatureTarget | newURISignatureTarget(java.lang.String uid)
if ( uid != null ) {
SignatureTarget target = new SignatureTarget();
target.setType(SignatureTarget.TARGET_TYPE_VALUE_URI);
target.setDigestAlgorithm(algorithmSuite.getDigestAlgorithm());
target.setValue("#"+uid);
addEXC14n(target);
target.setEnforce(enforce);
return target;
}
return null;
|
public com.sun.xml.wss.impl.policy.mls.SignatureTarget | newXpathSignatureTarget(java.lang.String xpathTarget)
SignatureTarget target = new SignatureTarget();
target.setType(SignatureTarget.TARGET_TYPE_VALUE_XPATH);
target.setDigestAlgorithm(algorithmSuite.getDigestAlgorithm());
addEXC14n(target);
target.setValue(xpathTarget);
target.setContentOnly(contentOnly);
target.setEnforce(enforce);
return target;
|