org.apache.ws.security.message.token
Class Reference

java.lang.Object
  extended by org.apache.ws.security.message.token.Reference

public class Reference
extends java.lang.Object

Reference.

Author:
Davanum Srinivas (dims@yahoo.com).

Field Summary
protected  org.w3c.dom.Element element
           
static javax.xml.namespace.QName TOKEN
           
 
Constructor Summary
Reference(org.w3c.dom.Document doc)
          Constructor.
Reference(org.w3c.dom.Element elem)
          Constructor.
 
Method Summary
 void addWSSENamespace()
          Add the WSSE Namespace to this reference.
 boolean equals(java.lang.Object object)
           
 org.w3c.dom.Element getElement()
          Get the DOM element.
 java.lang.String getURI()
          Get the URI.
 java.lang.String getValueType()
          Get the ValueType attribute.
 int hashCode()
           
 void setURI(java.lang.String uri)
          Set the URI.
 void setValueType(java.lang.String valueType)
          Set the Value type.
 java.lang.String toString()
          Return the string representation.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKEN

public static final javax.xml.namespace.QName TOKEN

element

protected org.w3c.dom.Element element
Constructor Detail

Reference

public Reference(org.w3c.dom.Element elem)
          throws WSSecurityException
Constructor.

Parameters:
elem - The Reference element
Throws:
WSSecurityException

Reference

public Reference(org.w3c.dom.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 org.w3c.dom.Element getElement()
Get the DOM element.

Returns:
the DOM element

getValueType

public java.lang.String getValueType()
Get the ValueType attribute.

Returns:
the ValueType attribute

getURI

public java.lang.String getURI()
Get the URI.

Returns:
the URI

setValueType

public void setValueType(java.lang.String valueType)
Set the Value type.

Parameters:
valueType - the ValueType attribute to set

setURI

public void setURI(java.lang.String uri)
Set the URI.

Parameters:
uri - the URI to set

toString

public java.lang.String toString()
Return the string representation.

Overrides:
toString in class java.lang.Object
Returns:
the string representation.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object


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