|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.profiles.wss.SecurityTokenReference
An implementation of the <SecurityTokenReference> element.
A <SecurityTokenReference> contains one of two types of references to key data. The first reference type is a direct reference, which simply points to the XML element containing the key data. This type of reference is usually a X.509 security token in the SOAP message security header. The second reference type is a KeyIdentifier, which contains necessary information for identifying the key. When creating aSecurityTokenReference object, a token is
attached to the WSSParameters or a security operation.
| Field Summary | |
static int |
DIRECT_REFERENCE
Specifies that this token reference points directly to XML element containing the key data. |
static int |
KEY_IDENTIFIER
Specifies that this token reference contains key identifier information. |
| Constructor Summary | |
SecurityTokenReference(SWSJContext context)
Creates an empty |
|
| Method Summary | |
getContext()
Gets the SWSJContext. |
|
java.lang.String |
getId()
Gets the |
getKeyIdentifier()
Gets the Key identifier. |
|
int |
getType()
Returns an integer specifying the type of token reference. |
void |
setId(java.lang.String id)
Sets the |
void |
setKeyIdentifier(KeyIdentifier identifier)
Sets the Key identifier. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DIRECT_REFERENCE
public static final int KEY_IDENTIFIER
| Constructor Detail |
public SecurityTokenReference(SWSJContext context)
throws InvalidParameterException
SecurityTokenReference object initialized
only with context.
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.
InvalidParameterException - If context is invalid.| Method Detail |
public SWSJContext getContext()
getContext in interface KeyInfopublic void setKeyIdentifier(KeyIdentifier identifier)
identifier - The Key identifier.public KeyIdentifier getKeyIdentifier()
public int getType()
DIRECT_REFERENCE or
KEY_IDENTIFIER.
public void setId(java.lang.String id)
throws InvalidParameterException
Id attribute that provides a standard method to
assign a string ID to an element within the document context.
Note: It is the user's responsibility not to
duplicate ID values in XML and WSS documents to which
security will be added.
id - The ID.
InvalidParameterException - If id is invalid or null.public java.lang.String getId()
Id attribute that provides a standard method to
assign a string ID to an element within the document context.
Id attribute.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||