|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ws.sandbox.security.conversation.message.token.DerivedKeyToken
Field Summary | |
protected org.w3c.dom.Element |
element
|
protected org.w3c.dom.Element |
elementGeneration
|
protected org.w3c.dom.Element |
elementLabel
|
protected org.w3c.dom.Element |
elementLength
|
protected org.w3c.dom.Element |
elementNonce
|
protected org.w3c.dom.Element |
elementOffset
|
protected org.w3c.dom.Element |
elementProperties
|
protected org.w3c.dom.Element |
elementSecurityTokenReference
|
static javax.xml.namespace.QName |
TOKEN
|
Constructor Summary | |
DerivedKeyToken(org.w3c.dom.Document doc)
This will create an empty DerivedKeyToken |
|
DerivedKeyToken(org.w3c.dom.Element elem)
This will create a DerivedKeyToken object with the given DErivedKeyToken element |
Method Summary | |
java.lang.String |
getAlgorithm()
Gets the derivattion algorithm |
org.w3c.dom.Element |
getElement()
Returns the dom element of this SecurityContextToken object. |
int |
getGeneration()
|
java.lang.String |
getID()
Gets the id. |
java.lang.String |
getLabel()
Returns the label of the derived key token |
long |
getLength()
|
java.lang.String |
getNonce()
Return the nonce of the derived key token |
int |
getOffset()
|
java.util.Hashtable |
getProperties()
|
SecurityTokenReference |
getSecuityTokenReference()
Returns the SecurityTokenReference of the derived key token |
void |
setAlgorithm(java.lang.String algo)
Set the derivattion algorithm of this derived key token. |
void |
setGeneration(org.w3c.dom.Document doc,
int generation)
Sets the generation of the derived key |
void |
setID(java.lang.String id)
Set the id of this derived key token. |
void |
setLabel(org.w3c.dom.Document doc,
java.lang.String label)
Sets the label of the derived key |
void |
setLength(org.w3c.dom.Document doc,
long length)
Sets the length of the derived key |
void |
setNonce(org.w3c.dom.Document doc,
java.lang.String nonce)
Sets the nonce value of the derived key |
void |
setOffset(org.w3c.dom.Document doc,
int offset)
Sets the offset |
void |
setProperties(org.w3c.dom.Document doc,
java.util.Hashtable properties)
If there are other types of properties other than Name, Label and Nonce This is provided for extensibility purposes |
void |
setProperties(org.w3c.dom.Document doc,
java.lang.String name,
java.lang.String label,
java.lang.String nonce)
This is used to set the Name, Label and Nonce element values in the properties element At this point I'm not sure if these are the only properties that will appear in the Properties element. |
void |
setSecuityTokenReference(org.w3c.dom.Document doc,
SecurityTokenReference ref)
Sets the security token reference of the derived key token This is the reference to the shared secret used in the conversation/context |
java.lang.String |
toString()
Returns the string representation of the token. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final javax.xml.namespace.QName TOKEN
protected org.w3c.dom.Element element
protected org.w3c.dom.Element elementSecurityTokenReference
protected org.w3c.dom.Element elementProperties
protected org.w3c.dom.Element elementGeneration
protected org.w3c.dom.Element elementOffset
protected org.w3c.dom.Element elementLength
protected org.w3c.dom.Element elementLabel
protected org.w3c.dom.Element elementNonce
Constructor Detail |
public DerivedKeyToken(org.w3c.dom.Document doc)
doc
- THe DOM documentpublic DerivedKeyToken(org.w3c.dom.Element elem) throws WSSecurityException
elem
- The DErivedKeyToken DOM element
WSSecurityException
- If the element is not a derived key tokenMethod Detail |
public void setSecuityTokenReference(org.w3c.dom.Document doc, SecurityTokenReference ref)
doc
- The DOM documentref
- Security token referencepublic SecurityTokenReference getSecuityTokenReference() throws WSSecurityException
WSSecurityException
public void setProperties(org.w3c.dom.Document doc, java.lang.String name, java.lang.String label, java.lang.String nonce)
Properties
element. There fore this method is provided
If this is not required feel free to remove this :D
doc
- The DOM documentname
- Value of the Properties/Name elementlabel
- Value of the Properties/Label elementnonce
- Value of the Properties/Nonce elementpublic void setProperties(org.w3c.dom.Document doc, java.util.Hashtable properties)
properties
- The properties and values in a hashtablepublic java.util.Hashtable getProperties()
public void setLength(org.w3c.dom.Document doc, long length)
doc
- The DOM documentlength
- The length of the derived key as a longpublic long getLength()
public void setOffset(org.w3c.dom.Document doc, int offset) throws ConversationException
doc
- The DOM documentoffset
- The offset value as an integer
ConversationException
public int getOffset()
public void setGeneration(org.w3c.dom.Document doc, int generation) throws ConversationException
doc
- The DOM documentgeneration
- generation value as an integer
ConversationException
public int getGeneration()
public void setLabel(org.w3c.dom.Document doc, java.lang.String label)
doc
- The DOM documentlabel
- Label value as a stringpublic void setNonce(org.w3c.dom.Document doc, java.lang.String nonce)
doc
- The DOM documentnonce
- Nonce value as a stringpublic java.lang.String getLabel()
public java.lang.String getNonce()
public org.w3c.dom.Element getElement()
SecurityContextToken
object.
public java.lang.String toString()
public java.lang.String getID()
wsu:Id
attribute of this
DerivedKeyTokenpublic void setID(java.lang.String id)
id
- the value for the wsu:Id
attribute of this
DerivgedKeyTokenpublic java.lang.String getAlgorithm()
wsc:Algorithm
attribute of this
DerivedKeyTokenpublic void setAlgorithm(java.lang.String algo)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |