Package org.apache.wss4j.dom.message
Class WSSecSignatureBase
java.lang.Object
org.apache.wss4j.dom.message.WSSecBase
org.apache.wss4j.dom.message.WSSecSignatureBase
- Direct Known Subclasses:
WSSecDerivedKeyBase,WSSecSignature
This is the base class for WS Security messages that are used for signature generation or
verification.
-
Field Summary
Fields inherited from class org.apache.wss4j.dom.message.WSSecBase
addWSUNamespace, attachmentCallbackHandler, callbackLookup, expandXopInclude, keyIdentifierType, password, storeBytesInAttachment, user -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddReferencesToSign(Document doc, List<WSEncryptionPart> references, WSDocInfo wsDocInfo, XMLSignatureFactory signatureFactory, boolean addInclusivePrefixes, String digestAlgo) This method adds references to the Signature.protected voidcleanup()Create an STRTransformationParameters elementgetInclusivePrefixes(Element target) Get the List of inclusive prefixes from the DOM Element argumentgetInclusivePrefixes(Element target, boolean excludeVisible) Get the List of inclusive prefixes from the DOM Element argumentMethods inherited from class org.apache.wss4j.dom.message.WSSecBase
clean, getDocument, getIdAllocator, getKeyIdentifierType, getParts, getSecurityHeader, getWsDocInfo, isExpandXopInclude, setAttachmentCallbackHandler, setBodyID, setCallbackLookup, setExpandXopInclude, setIdAllocator, setKeyIdentifierType, setStoreBytesInAttachment, setUserInfo, setWsDocInfo, setWsuId
-
Constructor Details
-
WSSecSignatureBase
-
WSSecSignatureBase
-
-
Method Details
-
addReferencesToSign
public List<Reference> addReferencesToSign(Document doc, List<WSEncryptionPart> references, WSDocInfo wsDocInfo, XMLSignatureFactory signatureFactory, boolean addInclusivePrefixes, String digestAlgo) throws WSSecurityException This method adds references to the Signature.- Parameters:
doc- The parent documentreferences- The list of references to signwsDocInfo- The WSDocInfo object to store protection elements insignatureFactory- The XMLSignature objectaddInclusivePrefixes- Whether to add inclusive prefixes or notdigestAlgo- The digest algorithm to use- Throws:
WSSecurityException
-
getInclusivePrefixes
Get the List of inclusive prefixes from the DOM Element argument -
getInclusivePrefixes
Get the List of inclusive prefixes from the DOM Element argument -
createSTRParameter
Create an STRTransformationParameters element -
cleanup
protected void cleanup()
-