org.globus.ogsa.impl.security.authentication.test
Class VerifyWSSecurity

java.lang.Object
  extended byorg.globus.ogsa.impl.security.authentication.wssec.WSSecurityEngine
      extended byorg.globus.ogsa.impl.security.authentication.test.VerifyWSSecurity

public class VerifyWSSecurity
extends WSSecurityEngine


Field Summary
 
Fields inherited from class org.globus.ogsa.impl.security.authentication.wssec.WSSecurityEngine
REPLAY_ATTACK_FILTER, REPLAY_ATTACK_WINDOW, SIG_LN
 
Constructor Summary
VerifyWSSecurity(org.ietf.jgss.GSSContext context)
           
 
Method Summary
 boolean decryptGssXMLEncryption(GSSEncryptedData encryptedData, MessageContext msgContext)
           
 boolean decryptXMLEncryption(org.w3c.dom.Element element, MessageContext msgCtx)
           
protected  ProxyPolicyHandler getGrimProxyHandler(XMLSignature sig, MessageContext msgCtx)
           
 org.w3c.dom.Document processSecurityHeader(SOAPEnvelope env, MessageContext msgCtx)
           
 void processTimestampHeader(org.w3c.dom.Element timestampElem, MessageContext msgCtx)
           
 boolean verifyGssXMLSignature(GssXMLSignature sig, MessageContext msgContext)
           
 boolean verifyXMLSignature(XMLSignature sig, MessageContext msgCtx)
           
 
Methods inherited from class org.globus.ogsa.impl.security.authentication.wssec.WSSecurityEngine
checkMessageValidity, ensureSignature, getCertificatesTokenReference, getCertificatesX509Data, getServiceProperties, getSubject, handleEncryptionElement, handleSignatureElement, normalize, processSecurityHeader, processSecurityHeader, rejectMsgSansTimestampHeader, verifyXMLSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerifyWSSecurity

public VerifyWSSecurity(org.ietf.jgss.GSSContext context)
Method Detail

processSecurityHeader

public org.w3c.dom.Document processSecurityHeader(SOAPEnvelope env,
                                                  MessageContext msgCtx)
                                           throws java.lang.Exception
Specified by:
processSecurityHeader in class WSSecurityEngine
Throws:
java.lang.Exception

verifyGssXMLSignature

public boolean verifyGssXMLSignature(GssXMLSignature sig,
                                     MessageContext msgContext)
                              throws java.lang.Exception
Specified by:
verifyGssXMLSignature in class WSSecurityEngine
Throws:
java.lang.Exception

verifyXMLSignature

public boolean verifyXMLSignature(XMLSignature sig,
                                  MessageContext msgCtx)
                           throws java.lang.Exception
Specified by:
verifyXMLSignature in class WSSecurityEngine
Throws:
java.lang.Exception

decryptGssXMLEncryption

public boolean decryptGssXMLEncryption(GSSEncryptedData encryptedData,
                                       MessageContext msgContext)
                                throws java.lang.Exception
Specified by:
decryptGssXMLEncryption in class WSSecurityEngine
Throws:
java.lang.Exception

getGrimProxyHandler

protected ProxyPolicyHandler getGrimProxyHandler(XMLSignature sig,
                                                 MessageContext msgCtx)
                                          throws java.lang.Exception
Specified by:
getGrimProxyHandler in class WSSecurityEngine
Throws:
java.lang.Exception

decryptXMLEncryption

public boolean decryptXMLEncryption(org.w3c.dom.Element element,
                                    MessageContext msgCtx)
                             throws java.lang.Exception
Specified by:
decryptXMLEncryption in class WSSecurityEngine
Throws:
java.lang.Exception

processTimestampHeader

public void processTimestampHeader(org.w3c.dom.Element timestampElem,
                                   MessageContext msgCtx)
                            throws java.lang.Exception
Overrides:
processTimestampHeader in class WSSecurityEngine
Throws:
java.lang.Exception