electric.soap.security.signature
Class WSSKeyInfoProcessor

java.lang.Object
  extended byelectric.soap.security.signature.WSSKeyInfoProcessor
All Implemented Interfaces:
IKeyInfoProcessor, IWSSConstants, IXMLSignatureConstants

public class WSSKeyInfoProcessor
extends java.lang.Object
implements IKeyInfoProcessor, IWSSConstants, IXMLSignatureConstants

KeyInfoProcessor is responsible for locating a SecurityToken (Key) based on information in the given <KeyInfo> element. This processor assumes that all messages include the appropriate <KeyInfo>

Author:
webMethods

Field Summary
 
Fields inherited from interface electric.soap.security.IWSSConstants
PASSWORD_DIGEST, PASSWORD_TEXT, SECURITY, SECURITY_TOKEN_REFERENCE, URI_ATTRIBUTE, WSSE_NAMESPACE, WSSE_PREFIX, WSU_NAMESPACE, WSU_PREFIX, X509_ENCODING_TYPE
 
Fields inherited from interface electric.soap.security.signature.xml.IXMLSignatureConstants
C14N_METHOD, DIGEST_METHOD, DIGEST_VALUE, DS, DS_NAMESPACE, DS_PREFIX, KEY_INFO, REFERENCE, RSA_SHA1, SIGNATURE, SIGNATURE_ALGORITHM_ATTRIBUTE, SIGNATURE_METHOD, SIGNATURE_VALUE, SIGNED_INFO, TRANSFORM, TRANSFORMS, XML_EXC_C14N, XMLDSIG_SHA1
 
Constructor Summary
WSSKeyInfoProcessor()
           
 
Method Summary
 void addKeyInfo(XMLSignature signature, Element signatureElement)
          Add key information in the form of a WS-Security SecurityTokenReference.
 SecurityToken findToken(java.util.Vector securityTokens, Element keyInfoElement, Element rootElement)
          Assume the keyInfoElement contains a WS-Security SecurityTokenReference and use it to find the appropriate key information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSKeyInfoProcessor

public WSSKeyInfoProcessor()
Method Detail

findToken

public SecurityToken findToken(java.util.Vector securityTokens,
                               Element keyInfoElement,
                               Element rootElement)
Assume the keyInfoElement contains a WS-Security SecurityTokenReference and use it to find the appropriate key information.

Specified by:
findToken in interface IKeyInfoProcessor
Parameters:
securityTokens -
keyInfoElement -
rootElement -
Returns:
the security token matching the signature.

addKeyInfo

public void addKeyInfo(XMLSignature signature,
                       Element signatureElement)
Add key information in the form of a WS-Security SecurityTokenReference.

Specified by:
addKeyInfo in interface IKeyInfoProcessor
Parameters:
signature -
signatureElement -


copyright© 2001-2004 by webMethods All Rights Reserved.