electric.soap.security.signature.xml
Interface IKeyInfoProcessor

All Known Implementing Classes:
WSSKeyInfoProcessor

public interface IKeyInfoProcessor

IKeyInfoProcessor is responsible for the relationship between <KeyInfo> elements and SecurityTokens. This interface is needed because the key info may be stored in a format not defined by the xml-dsig spec. For example, in a WS-Security SecurityTokenReference.

Author:
webMethods

Method Summary
 void addKeyInfo(XMLSignature signature, Element signatureElement)
          Given a signature, create a new KeyInfo element and add it to the given <Signature> element.
 SecurityToken findToken(java.util.Vector securityTokens, Element keyInfoElement, Element rootElement)
          Given parts of a signed document, find a KeyInfo element and use it to figure out which of the passed in security tokens was used to sign the message.
 

Method Detail

findToken

public SecurityToken findToken(java.util.Vector securityTokens,
                               Element keyInfoElement,
                               Element rootElement)
Given parts of a signed document, find a KeyInfo element and use it to figure out which of the passed in security tokens was used to sign the message. The answer may be "none of them".

Parameters:
securityTokens -
keyInfoElement -
rootElement -
Returns:
a security token, or null if none found.

addKeyInfo

public void addKeyInfo(XMLSignature signature,
                       Element signatureElement)
Given a signature, create a new KeyInfo element and add it to the given <Signature> element. If key information is transmitted out of band, this method may be a noop.

Parameters:
signature -
signatureElement -


copyright© 2001-2004 by webMethods All Rights Reserved.