|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.XMLDocument
com.rsa.swsj.profiles.wss.WSSDocument
This class processes the XML document and adds security to it, according to the WSS specification.
WSSDocument class.
XMLDocument class.
KeyInfo objects. However, WSS documents
cannot specify separate X509Token objects, since only one
token can be attached to an XMLEncryption operation.
| Constructor Summary | |
WSSDocument(SWSJContext context,
java.io.InputStream input)
Reads and parses the SOAP message. |
|
WSSDocument(SWSJContext context,
java.io.InputStream input,
java.io.OutputStream output)
Reads and parses the WSS document. |
|
| Method Summary | |
void |
addToken(Token token)
Adds a WS-Security token. |
Token[] |
getTokens()
Returns all tokens in this document. |
void |
process()
This method processes a security operations,such as sign or encrypt. |
void |
removeToken(Token token)
Removes a WS-Security token. |
void |
setTokens(Token[] tokens)
Adds an array of tokens to the document. |
| Methods inherited from class com.rsa.swsj.XMLDocument |
addSecurityOperation, getContext, getSecurityOperations, removeSecurityOperation, setOutputStream, setSecurityOperations |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WSSDocument(SWSJContext context,
java.io.InputStream input)
throws InvalidParameterException,
ParseException
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.input - An XML document.
InvalidParameterException - If any parameter is invalid.
ParseException - If there is any problem parsing
input.
public WSSDocument(SWSJContext context,
java.io.InputStream input,
java.io.OutputStream output)
throws InvalidParameterException,
ParseException
context - An object that collects a number of common parameters and
state variables; for example, JCE provider.input - The input XML document.output - The output stream.
InvalidParameterException - If any parameter is invalid.
ParseException - If there is any problem parsing
input.| Method Detail |
public void addToken(Token token)
throws InvalidParameterException
token - An object that can carry key information, such as a user id
or an X509Certificate.
InvalidParameterException - If token is null.
public void setTokens(Token[] tokens)
throws InvalidParameterException
tokens - An array of Token objects.
InvalidParameterException - If the input parameter is null.public Token[] getTokens()
Token objects.
public void removeToken(Token token)
throws InvalidParameterException
token - An object that can carry Key information, such as a user id
or an X509Certificate.
InvalidParameterException - If token is null.
public void process()
throws ProviderException,
ParseException,
SignatureException,
EncryptionException,
TokenException
process in class XMLDocumentProviderException - If there is an error parsing the input
data.
ParseException - If there is any other parsing error.
SignatureException - If there is an error processing the
Signature.
EncryptionException - If there is an error processing the XML
encryption.
TokenException - If there is an error processing a token.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||