|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.XMLDocument
This class processes the XML document and adds security to it.
WSSDocument class.
XMLDocument class.
| Constructor Summary | |
XMLDocument(SWSJContext context,
java.io.InputStream input)
Reads and parses an XML document. |
|
XMLDocument(SWSJContext context,
java.io.InputStream input,
java.io.OutputStream output)
Reads and parses the XML document. |
|
| Method Summary | |
void |
addSecurityOperation(XMLSecurityOperation op)
Adds an XML security operation to the document,such as XMLSignature. |
getContext()
Gets the |
|
getSecurityOperations()
Returns all XML security operations in this document. |
|
void |
process()
This method processes a security operations,such as sign or encrypt. |
void |
removeSecurityOperation(XMLSecurityOperation op)
Removes an XML security operation from the document. |
void |
setOutputStream(java.io.OutputStream output)
Sets the output stream to which the document is written. |
void |
setSecurityOperations(XMLSecurityOperation[] ops)
Sets an array of new XML security operations to the document. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLDocument(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 an invalid parameter is passed
to this method.
ParseException - If the input cannot be parsed.
public XMLDocument(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 - An XML document.output - the output stream.
InvalidParameterException - If an invalid parameter is passed
to this method.
ParseException - If the input cannot be parsed.| Method Detail |
public SWSJContext getContext()
SWSJContext object that carries a number of common
parameters and state variables.
SWSJContext object that collects a number of
common parameters and state variables; for example, JCE
provider.
public void setOutputStream(java.io.OutputStream output)
throws InvalidParameterException
output - The output stream.
InvalidParameterException - If an invalid parameter is passed
to this method.
public void addSecurityOperation(XMLSecurityOperation op)
throws InvalidParameterException
op - Any XML Security operation,such as XML signing.
InvalidParameterException - If an invalid parameter is passed
to this method.
public void setSecurityOperations(XMLSecurityOperation[] ops)
throws InvalidParameterException
ops - An array of security operations.
InvalidParameterException - If an invalid parameter is passed
to this method.public XMLSecurityOperation[] getSecurityOperations()
public void removeSecurityOperation(XMLSecurityOperation op)
throws InvalidParameterException
op - Any XML Security operation; for example, XML signing.
InvalidParameterException - If an invalid parameter is passed
to this method.
public void process()
throws ProviderException,
ParseException,
SignatureException,
EncryptionException,
TokenException
ProviderException - 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 | ||||||||||