*/
private AlgorithmSuite translateAlgorithmSuite(
org.apache.cxf.ws.security.policy.model.AlgorithmSuite cxfAlgorithmSuite
) {
// Translate into WSS4J's AlgorithmSuite class
AlgorithmSuite algorithmSuite = new AlgorithmSuite();
algorithmSuite.setEncryptionDerivedKeyLength(
cxfAlgorithmSuite.getEncryptionDerivedKeyLength());
algorithmSuite.setSignatureDerivedKeyLength(
cxfAlgorithmSuite.getSignatureDerivedKeyLength());
algorithmSuite.setMaximumAsymmetricKeyLength(
cxfAlgorithmSuite.getMaximumAsymmetricKeyLength());
algorithmSuite.setMinimumAsymmetricKeyLength(
cxfAlgorithmSuite.getMinimumAsymmetricKeyLength());
algorithmSuite.setMaximumSymmetricKeyLength(
cxfAlgorithmSuite.getMaximumSymmetricKeyLength());
algorithmSuite.setMinimumSymmetricKeyLength(
cxfAlgorithmSuite.getMinimumSymmetricKeyLength());
algorithmSuite.addEncryptionMethod(cxfAlgorithmSuite.getEncryption());
algorithmSuite.addKeyWrapAlgorithm(cxfAlgorithmSuite.getSymmetricKeyWrap());
algorithmSuite.addKeyWrapAlgorithm(cxfAlgorithmSuite.getAsymmetricKeyWrap());
algorithmSuite.addSignatureMethod(cxfAlgorithmSuite.getAsymmetricSignature());
algorithmSuite.addSignatureMethod(cxfAlgorithmSuite.getSymmetricSignature());
algorithmSuite.addDigestAlgorithm(cxfAlgorithmSuite.getDigest());
algorithmSuite.addC14nAlgorithm(cxfAlgorithmSuite.getInclusiveC14n());
algorithmSuite.addTransformAlgorithm(cxfAlgorithmSuite.getInclusiveC14n());
algorithmSuite.addTransformAlgorithm(SPConstants.STRT10);
algorithmSuite.addTransformAlgorithm(WSConstants.NS_XMLDSIG_ENVELOPED_SIGNATURE);
algorithmSuite.addDerivedKeyAlgorithm(SPConstants.P_SHA1);
algorithmSuite.addDerivedKeyAlgorithm(SPConstants.P_SHA1_L128);
return algorithmSuite;
}