|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.rsa.swsj.XMLSecurityOperation
This class is a superclass for all XML Security operations,
XMLSignature and XMLEncryption. It contains
information that is common for all security operations, such as security
parameters, references, and status of the operation.
| Constructor Summary | |
XMLSecurityOperation()
|
|
| Method Summary | |
void |
addReference(Reference reference)
Adds a |
getContext()
Gets the SWSJContext that is used to carry a number of common parameters and state variables; for example, JCE provider. |
|
java.lang.String |
getId()
Gets the |
java.lang.String |
getNamespacePrefix()
Gets the XML prefix of the |
java.io.OutputStream |
getOutputStream()
Returns the output stream for operation results. |
getParameters()
Gets the |
|
getReferences()
Returns an array of references. |
|
getStatusInfo()
Gets the object that contains the status of this operation. |
|
getTimestamp()
Gets the timestamp object associated with this security operation. |
|
abstract int |
getType()
Gets the signature type as an integer value. |
void |
setExpirationTime(java.util.Calendar time)
Sets the expiration time for this security operation. |
void |
setId(java.lang.String id)
Sets the |
void |
setLocation(java.lang.String qName,
int count)
Sets the location where this security operation is inserted. |
void |
setNamespacePrefix(java.lang.String prefix)
Sets the XML prefix of this XMLSecurityOperation element to prefix. |
void |
setOutputStream(java.io.OutputStream outputStream)
Sets output stream for results of the operation. |
void |
setParameters(SecurityParameters params)
Sets the parameters of this |
void |
setReferences(Reference[] references)
Sets the array of references. |
abstract void |
setType(int type)
Sets the type of the specific Security Operation. |
void |
skip()
Skips processing of this operation. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLSecurityOperation()
| Method Detail |
public void setReferences(Reference[] references)
throws InvalidParameterException
XMLSignature operations must be
a SigReference object. References for
XMLEncryption operations must be a Reference
object.
references - An array of references.
InvalidParameterException - If any of the references is null.
public void addReference(Reference reference)
throws InvalidParameterException
Reference.
Note: References for XMLSignature operations must be
a SigReference object. References for
XMLEncryption operations must be a Reference
object.
reference - The reference to add.
InvalidParameterException - If the reference is null.public Reference[] getReferences()
XMLSignature operations are
SigReference objects. References for
XMLEncryption operations are Reference
objects.
public void setParameters(SecurityParameters params)
XMLSecurityOperation to the
parameters contained in params.
params - A SecurityParameters object that contains a
list of parameters required by this security operation.public SecurityParameters getParameters()
SecurityParameters object of this
XMLSecurityOperation object. The
SecurityParameters object can contain keys, names,
certificates, and other public key management information, such as
in-band key distribution or key-agreement data.
SecurityParameters object.public SWSJContext getContext()
SWSJContext object.public StatusInfo getStatusInfo()
StatusInfo object of this XML security
operation.public void setOutputStream(java.io.OutputStream outputStream)
XMLDocument.
outputStream - An OutputStream object.public java.io.OutputStream getOutputStream()
OutputStream object.public void skip()
public void setNamespacePrefix(java.lang.String prefix)
prefix - A String holding the XML prefix to set.public java.lang.String getNamespacePrefix()
XMLSecurityOperation element as
a String object.
String object.
public abstract void setType(int type)
throws InvalidParameterException
type - An integer containing the type.
InvalidParameterExceptionpublic abstract int getType()
public void setId(java.lang.String id)
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.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.
public void setLocation(java.lang.String qName,
int count)
throws ParseException
Note: In an XMLSignature security operation, a Signature
node is added. In an XMLEncryption security operation, an
EncryptedKey node is added. This method specifies the location of
either type of node.
qName - The qualified name (with prefix) that identifies the Target
Node, or an empty string, if qualified names are not
available.count - Specifies which occurance of the node after which the
security operation is inserted. If not specified, a value of
1 is the default. If the qname is not set,
then count indicates the index of the target node in a
preorder traversal of the document tree.
ParseException - If the specified node does not exist.
public void setExpirationTime(java.util.Calendar time)
throws InvalidParameterException
time - A Calendar object that indicates the expiration
time for this security operation.
InvalidParameterException - If an invalid value is set.public Timestamp getTimestamp()
Timestamp object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||