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 thisSecurityContextToken
object.getID()
Gets the id.Get the identifier.void
setElement
(Element elem) void
Set the id of this security context token.void
setIdentifier
(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
public SecurityContextToken(Document doc, String uuid) throws org.apache.ws.security.conversation.ConversationException Constructor to create the SCT with a given uuid- Parameters:
doc
-- Throws:
org.apache.ws.security.conversation.ConversationException
-
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
public SecurityContextToken(int version, Document doc, String uuid) throws org.apache.ws.security.conversation.ConversationException Constructor to create the SCT with a given uuid- Parameters:
doc
-- Throws:
org.apache.ws.security.conversation.ConversationException
-
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
Set the identifier.- Parameters:
name
- sets a text node containing the identifier into the identifier element.
-
getIdentifier
Get the identifier.- Returns:
- the data from the identifier element.
-
setElement
-
getElement
Returns the dom element of thisSecurityContextToken
object.- Returns:
- the
wsse:UsernameToken
element
-
toString
Returns the string representation of the token. -
getID
Gets the id.- Returns:
- the value of the
wsu:Id
attribute of this SecurityContextToken
-
setID
Set the id of this security context token.- Parameters:
id
- the value for thewsu:Id
attribute of this SecurityContextToken
-