Package org.apache.wss4j.dom
Class WSDataRef
- java.lang.Object
-
- org.apache.wss4j.dom.WSDataRef
-
public class WSDataRef extends Object
-
-
Constructor Summary
Constructors Constructor Description WSDataRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAlgorithm()
String
getDigestAlgorithm()
byte[]
getDigestValue()
Element
getEncryptedElement()
QName
getName()
Element
getProtectedElement()
List<String>
getTransformAlgorithms()
Get the Transform algorithm URIs used to transform the element before digestString
getWsuId()
String
getXpath()
boolean
isAttachment()
boolean
isContent()
void
setAlgorithm(String algo)
void
setAttachment(boolean attachment)
void
setContent(boolean content)
void
setDigestAlgorithm(String digestAlgorithm)
void
setDigestValue(byte[] digestValue)
void
setEncryptedElement(Element encryptedElement)
void
setName(QName name)
void
setProtectedElement(Element element)
void
setTransformAlgorithms(List<String> transformAlgorithms)
Set the Transform algorithm URIs used to transform the element before digestvoid
setWsuId(String wsuId)
void
setXpath(String xpath)
-
-
-
Method Detail
-
getWsuId
public String getWsuId()
- Returns:
- Id of the protected element
-
setWsuId
public void setWsuId(String wsuId)
- Parameters:
wsuId
- Id of the protected element
-
getName
public QName getName()
- Returns:
- QName of the protected element
-
setName
public void setName(QName name)
- Parameters:
name
- QName of the protected element
-
setProtectedElement
public void setProtectedElement(Element element)
- Parameters:
element
- The protected DOM element to set
-
getProtectedElement
public Element getProtectedElement()
- Returns:
- the protected DOM element
-
getXpath
public String getXpath()
- Returns:
- the xpath
-
setXpath
public void setXpath(String xpath)
- Parameters:
xpath
- the xpath to set
-
isContent
public boolean isContent()
- Returns:
- the content
-
setContent
public void setContent(boolean content)
- Parameters:
content
- the content to set
-
getAlgorithm
public String getAlgorithm()
- Returns:
- the algorithm used for encryption/signature
-
setAlgorithm
public void setAlgorithm(String algo)
- Parameters:
algo
- algorithm used for encryption
-
getDigestAlgorithm
public String getDigestAlgorithm()
- Returns:
- if this reference represents signed content, the digest algorithm applied to the content.
-
setDigestAlgorithm
public void setDigestAlgorithm(String digestAlgorithm)
- Parameters:
digestAlgorithm
- if this reference represents signed content, the digest algorithm applied to the content.
-
setTransformAlgorithms
public void setTransformAlgorithms(List<String> transformAlgorithms)
Set the Transform algorithm URIs used to transform the element before digest
-
getTransformAlgorithms
public List<String> getTransformAlgorithms()
Get the Transform algorithm URIs used to transform the element before digest
-
isAttachment
public boolean isAttachment()
-
setAttachment
public void setAttachment(boolean attachment)
-
getDigestValue
public byte[] getDigestValue()
-
setDigestValue
public void setDigestValue(byte[] digestValue)
-
getEncryptedElement
public Element getEncryptedElement()
-
setEncryptedElement
public void setEncryptedElement(Element encryptedElement)
-
-