wsSecSignature.setKeyIdentifierType(WSConstants.CUSTOM_KEY_IDENTIFIER); wsSecSignature .setCustomTokenValueType(WSConstants.WSS_SAML_KI_VALUE_TYPE);
wssConfig.setWsiBSPCompliant(false); WSSecSignature sign = new WSSecSignature(wssConfig); sign.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE); sign.prepare(soapPart, crypto, wsSecHeader); String bstId = sign.getBSTTokenId();
sign.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE); sign.setUseSingleCertificate(true);
wssConfig.setWsiBSPCompliant(false); WSSecSignature sign = new WSSecSignature(wssConfig); sign.setKeyIdentifierType(WSConstants.BST_DIRECT_REFERENCE); sign.prepare(soapPart, crypto, wsSecHeader); sign.appendBSTElementToHeader(wsSecHeader);
wsSign.setKeyIdentifierType(reqData.getSigKeyId());
wsSign.setKeyIdentifierType(reqData.getSigKeyId());
sig.setSignatureAlgorithm(algorithmSuite.getAsymmetricSignature()); sig.setSignatureAlgorithm(algorithmSuite.getSymmetricSignature()); sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING); sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd .getRampartConfig(), rmd.getCustomClassLoader()),
sig.setSignatureAlgorithm(algorithmSuite.getAsymmetricSignature()); sig.setSignatureAlgorithm(algorithmSuite.getSymmetricSignature()); sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING); sig.prepare(rmd.getDocument(), RampartUtil.getSignatureCrypto(rpd .getRampartConfig(), rmd.getCustomClassLoader()),
sign.setCustomTokenId(builder.getId()); sign.setSecretKey(builder.getSecretKey()); sign.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING); if (reqData.getSigDigestAlgorithm() != null) { sign.setDigestAlgo(reqData.getSigDigestAlgorithm());
sign.setCustomTokenId(builder.getId()); sign.setSecretKey(builder.getSecretKey()); sign.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING); if (reqData.getSigDigestAlgorithm() != null) { sign.setDigestAlgo(reqData.getSigDigestAlgorithm());
sig.setCustomTokenValueType(WSConstants.SOAPMESSAGE_NS11 + "#" + WSConstants.ENC_KEY_VALUE_TYPE); sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING); } else { sig.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER); sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING); sig.setKeyIdentifierType(WSConstants.CUSTOM_SYMM_SIGNING); OMElement ref = tok.getAttachedReference(); if(ref == null) {