org.apache.ws.security.message
Class WSSecSignatureBase

java.lang.Object
  extended by org.apache.ws.security.message.WSSecBase
      extended by org.apache.ws.security.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.ws.security.message.WSSecBase
callbackLookup, doDebug, keyIdentifierType, parts, password, user
 
Constructor Summary
WSSecSignatureBase()
           
WSSecSignatureBase(WSSConfig config)
           
 
Method Summary
 List<javax.xml.crypto.dsig.Reference> addReferencesToSign(Document doc, List<WSEncryptionPart> references, WSDocInfo wsDocInfo, javax.xml.crypto.dsig.XMLSignatureFactory signatureFactory, WSSecHeader secHeader, WSSConfig wssConfig, String digestAlgo)
          This method adds references to the Signature.
 Element createSTRParameter(Document doc)
          Create an STRTransformationParameters element
 List<String> getInclusivePrefixes(Element target)
          Get the List of inclusive prefixes from the DOM Element argument
 List<String> getInclusivePrefixes(Element target, boolean excludeVisible)
          Get the List of inclusive prefixes from the DOM Element argument
 
Methods inherited from class org.apache.ws.security.message.WSSecBase
getKeyIdentifierType, getWsConfig, setBodyID, setCallbackLookup, setKeyIdentifierType, setParts, setUserInfo, setWsConfig, setWsuId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSecSignatureBase

public WSSecSignatureBase()

WSSecSignatureBase

public WSSecSignatureBase(WSSConfig config)
Method Detail

addReferencesToSign

public List<javax.xml.crypto.dsig.Reference> addReferencesToSign(Document doc,
                                                                 List<WSEncryptionPart> references,
                                                                 WSDocInfo wsDocInfo,
                                                                 javax.xml.crypto.dsig.XMLSignatureFactory signatureFactory,
                                                                 WSSecHeader secHeader,
                                                                 WSSConfig wssConfig,
                                                                 String digestAlgo)
                                                          throws WSSecurityException
This method adds references to the Signature.

Parameters:
doc - The parent document
references - The list of references to sign
wsDocInfo - The WSDocInfo object to store protection elements in
signatureFactory - The XMLSignature object
secHeader - The Security Header
wssConfig - The WSSConfig
digestAlgo - 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



Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.