weblogic.webservice.core.soap
Class  XMLSignature
java.lang.Object
  |
  +--weblogic.webservice.core.soap.XMLSignature
- public class XMLSignature
- extends java.lang.Object
  
XML signature sign and validate API
 User: jlee
 Date: Feb 3, 2004
 Time: 10:18:14 AM
- Author: 
 - Copyright © 2004 BEA Systems, Inc. All Rights Reserved.
 
 
| 
Method Summary
 | 
static void | 
sign(java.io.InputStream in,
     java.io.OutputStream out,
     java.security.cert.X509Certificate clientcert,
     java.security.PrivateKey clientprivate)
 
          Read xml document from the inputstream and write the signed document to the provided outputstream | 
static ValidateResult | 
validate(java.io.InputStream in)
 
          Verify the signed xml document from the inputstream | 
 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
XMLSignature
public XMLSignature()
sign
public static void sign(java.io.InputStream in,
                        java.io.OutputStream out,
                        java.security.cert.X509Certificate clientcert,
                        java.security.PrivateKey clientprivate)
                 throws XMLSignatureException
- Read xml document from the inputstream and write the signed document to the provided outputstream
- Parameters:
 in - inputstream of plain xml documentout - outputstream of signed xml documentclientcert - client certificate added to the signed documentclientprivate - client private key used in the signing process- Throws:
 - webservice.core.soap.XMLSignatureException - exception during the signing process
 
 
 
validate
public static ValidateResult validate(java.io.InputStream in)
                               throws XMLSignatureException
- Verify the signed xml document from the inputstream
- Parameters:
 in - inputstream of signed xml document- Returns:
 - validation result, i.e: certificates used in the validation process, etc.
 - Throws:
 - webservice.core.soap.XMLSignatureException - exception during validation process