public class SecurityContextToken extends Object
| Constructor and Description |
|---|
SecurityContextToken(Document doc)
Constructor to create the SCT
|
SecurityContextToken(Document doc,
String uuid)
Constructor to create the SCT with a given uuid
|
SecurityContextToken(Element elem)
This is used to create a SecurityContextToken using a DOM Element
|
SecurityContextToken(int version,
Document doc)
Constructor to create the SCT
|
SecurityContextToken(int version,
Document doc,
String uuid)
Constructor to create the SCT with a given uuid
|
SecurityContextToken(int version,
Document doc,
String uuid,
String instance)
Constructor to create the SCT with a given uuid and instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWSUNamespace()
Add the WSU Namespace to this SCT.
|
boolean |
equals(Object object) |
Element |
getElement()
Returns the dom element of this
SecurityContextToken object. |
String |
getID()
Gets the id.
|
String |
getIdentifier()
Get the identifier.
|
String |
getInstance()
Get the instance.
|
String |
getTokenType()
Get the WS-Trust tokenType String associated with this token
|
int |
hashCode() |
void |
setElement(Element elem) |
void |
setID(String id)
Set the id of this security context token.
|
void |
setIdentifier(String uuid)
Set the identifier.
|
String |
toString()
Returns the string representation of the token.
|
public SecurityContextToken(Document doc) throws WSSecurityException
doc - WSSecurityExceptionpublic SecurityContextToken(Document doc, String uuid) throws WSSecurityException
doc - WSSecurityExceptionpublic SecurityContextToken(int version,
Document doc)
throws WSSecurityException
doc - WSSecurityExceptionpublic SecurityContextToken(int version,
Document doc,
String uuid)
throws WSSecurityException
doc - WSSecurityExceptionpublic SecurityContextToken(int version,
Document doc,
String uuid,
String instance)
throws WSSecurityException
doc - WSSecurityExceptionpublic SecurityContextToken(Element elem) throws WSSecurityException
elem - The DOM element: The security context tokenWSSecurityException - If the element passed in in not a security context tokenpublic void addWSUNamespace()
public void setIdentifier(String uuid)
public String getIdentifier()
public String getInstance()
public String getTokenType()
public void setElement(Element elem)
public Element getElement()
SecurityContextToken object.wsse:SecurityContextToken elementpublic String toString()
public String getID()
wsu:Id attribute of this
SecurityContextTokenpublic void setID(String id)
id - the value for the wsu:Id attribute of this
SecurityContextTokenCopyright © 2018 JBoss by Red Hat. All rights reserved.