Package org.apache.wss4j.common.token
Class Reference
- java.lang.Object
-
- org.apache.wss4j.common.token.Reference
-
public class Reference extends Object
Reference.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addWSSENamespace()
Add the WSSE Namespace to this reference.boolean
equals(Object object)
Element
getElement()
Get the DOM element.String
getURI()
Get the URI.String
getValueType()
Get the ValueType attribute.int
hashCode()
void
setURI(String uri)
Set the URI.void
setValueType(String valueType)
Set the Value type.String
toString()
Return the string representation.
-
-
-
Field Detail
-
TOKEN
public static final QName TOKEN
-
-
Constructor Detail
-
Reference
public Reference(Element elem) throws WSSecurityException
Constructor.- Parameters:
elem
- The Reference element- Throws:
WSSecurityException
-
Reference
public Reference(Document doc)
Constructor.- Parameters:
doc
-
-
-
Method Detail
-
addWSSENamespace
public void addWSSENamespace()
Add the WSSE Namespace to this reference. The namespace is not added by default for efficiency purposes, as the reference is embedded in a wsse:SecurityTokenReference.
-
getElement
public Element getElement()
Get the DOM element.- Returns:
- the DOM element
-
getValueType
public String getValueType()
Get the ValueType attribute.- Returns:
- the ValueType attribute
-
getURI
public String getURI()
Get the URI.- Returns:
- the URI
-
setValueType
public void setValueType(String valueType)
Set the Value type.- Parameters:
valueType
- the ValueType attribute to set
-
setURI
public void setURI(String uri)
Set the URI.- Parameters:
uri
- the URI to set
-
toString
public String toString()
Return the string representation.
-
-