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

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

public class Reference
extends Object

Reference.

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

Field Summary
protected  Element element
           
static QName TOKEN
           
 
Constructor Summary
Reference(Document doc)
          Constructor.
Reference(Element elem)
          Constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKEN

public static final QName TOKEN

element

protected Element element
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.

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


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