org.globus.wsrf.impl.security.authentication.encryption
Class X509WSEncryptedSOAPEnvelopeBuilder

java.lang.Object
  extended byorg.apache.ws.security.message.WSBaseMessage
      extended byorg.apache.ws.security.message.WSEncryptBody
          extended byorg.globus.wsrf.impl.security.authentication.encryption.X509WSEncryptedSOAPEnvelopeBuilder

public class X509WSEncryptedSOAPEnvelopeBuilder
extends org.apache.ws.security.message.WSEncryptBody

Used for GSI secure message encryption. Encrypts the body of the message and inserts relevant information into SOAP header.


Field Summary
protected static ContextCrypto crypto
           
private static org.apache.commons.logging.Log logger
           
 
Fields inherited from class org.apache.ws.security.message.WSEncryptBody
embeddedKey, embeddedKeyName, encCanonAlgo, encryptionKey, keyEncAlgo, parentNode, securityTokenReference, symEncAlgo, symmetricKey, useThisCert
 
Fields inherited from class org.apache.ws.security.message.WSBaseMessage
actor, doDebug, keyIdentifierType, mustunderstand, parts, password, timeToLive, user, wssConfig
 
Constructor Summary
X509WSEncryptedSOAPEnvelopeBuilder(java.security.cert.X509Certificate cert)
           
 
Method Summary
 javax.xml.soap.SOAPEnvelope build(javax.xml.soap.SOAPEnvelope envelope)
           
 javax.xml.soap.SOAPMessage buildMessage(javax.xml.soap.SOAPEnvelope env)
           
 
Methods inherited from class org.apache.ws.security.message.WSEncryptBody
build, createCipherValue, createDataRefList, createEnrcyptedKey, getEncryptionKey, getSecurityTokenReference, getSymmetricEncAlgorithm, getSymmetricKey, setEmbeddedKeyName, setEncCanonicalization, setKey, setKeyEnc, setParentNode, setSecurityTokenReference, setSymmetricEncAlgorithm, setSymmetricKey, setUserInfo, setUseThisCert
 
Methods inherited from class org.apache.ws.security.message.WSBaseMessage
getKeyIdentifierType, insertSecurityHeader, setActor, setBodyID, setKeyIdentifierType, setMustUnderstand, setParts, setTimeToLive, setUserInfo, setWsuId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

crypto

protected static ContextCrypto crypto
Constructor Detail

X509WSEncryptedSOAPEnvelopeBuilder

public X509WSEncryptedSOAPEnvelopeBuilder(java.security.cert.X509Certificate cert)
Method Detail

build

public javax.xml.soap.SOAPEnvelope build(javax.xml.soap.SOAPEnvelope envelope)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

buildMessage

public javax.xml.soap.SOAPMessage buildMessage(javax.xml.soap.SOAPEnvelope env)
                                        throws java.lang.Exception
Throws:
java.lang.Exception