/** * This method adds references to the Signature. * * @param references The list of references to sign * @param secHeader The Security Header * @throws WSSecurityException */ public List<javax.xml.crypto.dsig.Reference> addReferencesToSign( List<WSEncryptionPart> references, WSSecHeader secHeader ) throws WSSecurityException { return addReferencesToSign( document, references, wsDocInfo, signatureFactory, secHeader, getWsConfig(), digestAlgo ); }
/** * This method adds references to the Signature. * * @param references The list of references to sign * @param secHeader The Security Header * @throws WSSecurityException */ public List<javax.xml.crypto.dsig.Reference> addReferencesToSign( List<WSEncryptionPart> references, WSSecHeader secHeader ) throws WSSecurityException { return addReferencesToSign( document, references, wsDocInfo, signatureFactory, secHeader, getWsConfig(), digestAlgo ); }
); certUri = getWsConfig().getIdAllocator().createSecureId("X509-", certs[0]);
); certUri = getWsConfig().getIdAllocator().createSecureId("X509-", certs[0]);
keyInfo, null, getWsConfig().getIdAllocator().createId("SIG-", null), null);
keyInfo, null, getWsConfig().getIdAllocator().createId("SIG-", null), null);
if (getWsConfig().isWsiBSPCompliant() && canonAlgo.equals(WSConstants.C14N_EXCL_OMIT_COMMENTS)) { List<String> prefixes = getInclusivePrefixes(secHeader.getSecurityHeader(), false); keyInfoUri = getWsConfig().getIdAllocator().createSecureId("KI-", keyInfo); if (!useCustomSecRef) { secRef = new SecurityTokenReference(doc); strUri = getWsConfig().getIdAllocator().createSecureId("STR-", secRef); secRef.addWSSENamespace(); secRef.addWSUNamespace();
if (getWsConfig().isWsiBSPCompliant() && canonAlgo.equals(WSConstants.C14N_EXCL_OMIT_COMMENTS)) { List<String> prefixes = getInclusivePrefixes(secHeader.getSecurityHeader(), false); keyInfoUri = getWsConfig().getIdAllocator().createSecureId("KI-", keyInfo); if (!useCustomSecRef) { secRef = new SecurityTokenReference(doc); strUri = getWsConfig().getIdAllocator().createSecureId("STR-", secRef); secRef.addWSSENamespace(); secRef.addWSUNamespace();