Package org.apache.wss4j.dom
Class WSDataRef
java.lang.Object
org.apache.wss4j.dom.WSDataRef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getName()Get the Transform algorithm URIs used to transform the element before digestgetWsuId()getXpath()booleanbooleanvoidsetAlgorithm(String algo) voidsetAttachment(boolean attachment) voidsetContent(boolean content) voidsetDigestAlgorithm(String digestAlgorithm) voidsetDigestValue(byte[] digestValue) voidsetEncryptedElement(Element encryptedElement) voidvoidsetProtectedElement(Element element) voidsetTransformAlgorithms(List<String> transformAlgorithms) Set the Transform algorithm URIs used to transform the element before digestvoidvoid
-
Constructor Details
-
WSDataRef
public WSDataRef()
-
-
Method Details
-
getWsuId
- Returns:
- Id of the protected element
-
setWsuId
- Parameters:
wsuId- Id of the protected element
-
getName
- Returns:
- QName of the protected element
-
setName
- Parameters:
name- QName of the protected element
-
setProtectedElement
- Parameters:
element- The protected DOM element to set
-
getProtectedElement
- Returns:
- the protected DOM element
-
getXpath
- Returns:
- the xpath
-
setXpath
- 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
- Returns:
- the algorithm used for encryption/signature
-
setAlgorithm
- Parameters:
algo- algorithm used for encryption
-
getDigestAlgorithm
- Returns:
- if this reference represents signed content, the digest algorithm applied to the content.
-
setDigestAlgorithm
- Parameters:
digestAlgorithm- if this reference represents signed content, the digest algorithm applied to the content.
-
setTransformAlgorithms
Set the Transform algorithm URIs used to transform the element before digest -
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
-
setEncryptedElement
-