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
public class WSSecSignatureBase extends WSSecBase
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 Constructor Description WSSecSignatureBase(WSSecHeader securityHeader)WSSecSignatureBase(Document doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Reference>addReferencesToSign(Document doc, List<WSEncryptionPart> references, WSDocInfo wsDocInfo, XMLSignatureFactory signatureFactory, boolean addInclusivePrefixes, String digestAlgo)This method adds references to the Signature.protected voidcleanup()ElementcreateSTRParameter(Document doc)Create an STRTransformationParameters elementList<String>getInclusivePrefixes(Element target)Get the List of inclusive prefixes from the DOM Element argumentList<String>getInclusivePrefixes(Element target, boolean excludeVisible)Get the List of inclusive prefixes from the DOM Element argument-
Methods 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 Detail
-
WSSecSignatureBase
public WSSecSignatureBase(WSSecHeader securityHeader)
-
WSSecSignatureBase
public WSSecSignatureBase(Document doc)
-
-
Method Detail
-
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
public List<String> getInclusivePrefixes(Element target)
Get the List of inclusive prefixes from the DOM Element argument
-
getInclusivePrefixes
public List<String> getInclusivePrefixes(Element target, boolean excludeVisible)
Get the List of inclusive prefixes from the DOM Element argument
-
createSTRParameter
public Element createSTRParameter(Document doc)
Create an STRTransformationParameters element
-
cleanup
protected void cleanup()
-
-