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

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.GssEncryptedSOAPEnvelopeBuilder

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

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


Field Summary
static java.lang.String ALGORITHM
           
protected  org.ietf.jgss.GSSContext context
           
protected  java.lang.String contextId
           
protected static ContextCrypto crypto
           
private static org.apache.commons.logging.Log logger
           
protected  javax.xml.rpc.handler.MessageContext msgContext
           
 
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
protected GssEncryptedSOAPEnvelopeBuilder(javax.xml.rpc.handler.MessageContext msgContext, org.ietf.jgss.GSSContext context, java.lang.String contextId)
           
  GssEncryptedSOAPEnvelopeBuilder(javax.xml.rpc.handler.MessageContext msgContext, SecurityContext context)
           
 
Method Summary
 javax.xml.soap.SOAPEnvelope build(javax.xml.soap.SOAPEnvelope envelope)
           
 javax.xml.soap.SOAPMessage buildMessage(javax.xml.soap.SOAPEnvelope env)
           
private  java.lang.String getContextId()
           
 
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

ALGORITHM

public static final java.lang.String ALGORITHM
See Also:
Constant Field Values

logger

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

context

protected org.ietf.jgss.GSSContext context

contextId

protected java.lang.String contextId

msgContext

protected javax.xml.rpc.handler.MessageContext msgContext

crypto

protected static ContextCrypto crypto
Constructor Detail

GssEncryptedSOAPEnvelopeBuilder

public GssEncryptedSOAPEnvelopeBuilder(javax.xml.rpc.handler.MessageContext msgContext,
                                       SecurityContext context)

GssEncryptedSOAPEnvelopeBuilder

protected GssEncryptedSOAPEnvelopeBuilder(javax.xml.rpc.handler.MessageContext msgContext,
                                          org.ietf.jgss.GSSContext context,
                                          java.lang.String contextId)
Method Detail

getContextId

private java.lang.String getContextId()

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