electric.soap.security.encryption
Class WSSEncryptionProcessor
java.lang.Object
electric.soap.security.encryption.WSSEncryptionProcessor
- All Implemented Interfaces:
- ISOAPConstants, IWSSConstants, IXMLConstants, IXMLEncryptionConstants
- public class WSSEncryptionProcessor
- extends java.lang.Object
- implements IWSSConstants, IXMLConstants, ISOAPConstants, IXMLEncryptionConstants
WSSEncryptionProcessor knows how to map the
encryption portions of the WS-Security spec into lower
level calls to an XML-Encryption implementation. For
example, it deals with SOAPMessage's instead of XML
documents, and knows about the <Security> header.
- Author:
- webmethods
Fields inherited from interface electric.xml.IXMLConstants |
ATTLIST_START, ATTLIST_STOP, CDATA, CDATA_START, CDATA_STOP, CLOSE_TAG, COLON, COMMENT_START, COMMENT_STOP, DOCTYPE_START, DOCTYPE_STOP, ELEMENTDECL_START, ELEMENTDECL_STOP, ENCODING, ENTITYDECL_START, ENTITYDECL_STOP, ID, ID_CASE, INSTRUCTION_START, INSTRUCTION_STOP, NEGATIVE_INFINITY, NOT_A_NUMBER, NOTATIONDECL_START, NOTATIONDECL_STOP, NULL, OPEN_TAG, POSITIVE_INFINITY, PUBLIC, SPECIALS, STANDALONE, SUBSTITUTES, SYSTEM, UNDEFINED, VERSION, XML, XML_NAMESPACE, XMLDECL_START, XMLDECL_STOP, XMLNS, XMLNS_NAMESPACE |
Fields inherited from interface electric.soap.ISOAPConstants |
ACTOR, ASYNC, BODY, DETAIL, ENCODING_STYLE, ENVELOPE, EXCEPTION, FAULT, FAULT_ACTOR, FAULT_CODE, FAULT_STRING, GET_SOAP_ACTOR, GET_SOAP_CODE, HEADER, MUST_UNDERSTAND, NEXT_ACTOR, OPTIMIZED_HEADER, SET_SOAP_ACTOR, SET_SOAP_CODE, SET_SOAP_DETAIL, SOAP_ACTION_HEADER, SOAP_BINDING, SOAP_ENCODING, SOAP_ENCODING_PREFIX, SOAP_ENVELOPE, SOAP_HTTP_TRANSPORT, SOAP_PREFIX, SOAP11_BINDING, SOAP11_ENCODING, SOAP11_ENVELOPE, SOAP12, SOAP12_BINDING, SOAP12_ENCODING, SOAP12_ENVELOPE, SOAP12_HTTP_CONTENT_TYPE, STACKTRACE, TME_PREFIX, UNDERSTOOD, XSD_PREFIX, XSI_PREFIX, XSI_SUFFIX |
Method Summary |
void |
addEncryption(SOAPMessage message,
Element securityElement,
WSSContext context,
WSSEncryption encryption,
java.util.Hashtable certToId)
|
void |
addEncryptionCertificates(SOAPMessage message,
WSSContext wss,
Element securityElement,
java.util.Hashtable certToId)
|
void |
addEncryptions(SOAPMessage message,
WSSContext wss,
Element securityElement,
java.util.Hashtable certToId)
|
void |
addSymmetricEncryption(SOAPMessage message,
Element securityElement,
WSSContext context,
WSSEncryption encryption,
java.util.Hashtable certToId)
|
static Element |
createReferenceList(java.lang.String xencPrefix)
|
void |
decrypt(SOAPMessage message,
java.util.Vector encryptions,
java.util.Enumeration guards)
Decrypt the message. |
java.util.Vector |
getEncrytionGuards(java.util.Enumeration guards)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WSSEncryptionProcessor
public WSSEncryptionProcessor(SecurityTokenProcessor tokenProcessor)
- Parameters:
tokenProcessor
-
addEncryptionCertificates
public void addEncryptionCertificates(SOAPMessage message,
WSSContext wss,
Element securityElement,
java.util.Hashtable certToId)
- Parameters:
message
- wss
- securityElement
- certToId
-
createReferenceList
public static Element createReferenceList(java.lang.String xencPrefix)
- Parameters:
xencPrefix
-
- Returns:
- a new <ReferenceList> element.
addEncryptions
public void addEncryptions(SOAPMessage message,
WSSContext wss,
Element securityElement,
java.util.Hashtable certToId)
throws java.lang.Exception
- Parameters:
message
- wss
- securityElement
- certToId
-
- Throws:
java.lang.Exception
addEncryption
public void addEncryption(SOAPMessage message,
Element securityElement,
WSSContext context,
WSSEncryption encryption,
java.util.Hashtable certToId)
throws java.lang.Exception
- Parameters:
message
- securityElement
- context
- encryption
- certToId
-
- Throws:
java.lang.Exception
addSymmetricEncryption
public void addSymmetricEncryption(SOAPMessage message,
Element securityElement,
WSSContext context,
WSSEncryption encryption,
java.util.Hashtable certToId)
throws java.lang.Exception
- Parameters:
message
- securityElement
- context
- encryption
- certToId
-
- Throws:
java.lang.Exception
getEncrytionGuards
public java.util.Vector getEncrytionGuards(java.util.Enumeration guards)
- Parameters:
guards
-
- Returns:
- the encryption guards.
decrypt
public void decrypt(SOAPMessage message,
java.util.Vector encryptions,
java.util.Enumeration guards)
- Decrypt the message.
- Parameters:
message
-
copyright© 2001-2004 by webMethods All Rights Reserved.