Class SecurityContextToken
java.lang.Object
org.apache.ws.security.message.token.SecurityContextToken
- Version:
- 1.0
- Author:
- Ruchith Fernando
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSecurityContextToken(int version, Document doc) Constructor to create the SCTSecurityContextToken(int version, Document doc, String uuid) Constructor to create the SCT with a given uuidConstructor to create the SCTSecurityContextToken(Document doc, String uuid) Constructor to create the SCT with a given uuidSecurityContextToken(Element elem) This is used to create a SecurityContestToken using a DOM Element -
Method Summary
Modifier and TypeMethodDescriptionReturns the dom element of thisSecurityContextTokenobject.getID()Gets the id.Get the identifier.voidsetElement(Element elem) voidSet the id of this security context token.voidsetIdentifier(Document doc, String uuid) Set the identifier.toString()Returns the string representation of the token.
-
Field Details
-
element
Security context token element -
elementIdentifier
Identifier element
-
-
Constructor Details
-
SecurityContextToken
public SecurityContextToken(Document doc) throws org.apache.ws.security.conversation.ConversationException Constructor to create the SCT- Parameters:
doc-- Throws:
org.apache.ws.security.conversation.ConversationException
-
SecurityContextToken
-
SecurityContextToken
public SecurityContextToken(int version, Document doc) throws org.apache.ws.security.conversation.ConversationException Constructor to create the SCT- Parameters:
doc-- Throws:
org.apache.ws.security.conversation.ConversationException
-
SecurityContextToken
-
SecurityContextToken
This is used to create a SecurityContestToken using a DOM Element- Parameters:
elem- The DOM element: The security context token- Throws:
WSSecurityException- If the element passed in in not a security context token
-
-
Method Details
-
setIdentifier
-
getIdentifier
-
setElement
-
getElement
Returns the dom element of thisSecurityContextTokenobject.- Returns:
- the
wsse:UsernameTokenelement
-
toString
-
getID
Gets the id.- Returns:
- the value of the
wsu:Idattribute of this SecurityContextToken
-
setID
Set the id of this security context token.- Parameters:
id- the value for thewsu:Idattribute of this SecurityContextToken
-