org.apache.ws.security
Class WSDocInfo

java.lang.Object
  extended by org.apache.ws.security.WSDocInfo

public class WSDocInfo
extends java.lang.Object


Constructor Summary
WSDocInfo(org.w3c.dom.Document doc)
           
 
Method Summary
 void addProtectionElement(org.w3c.dom.Element element)
          Store a protection element for later retrieval.
 void addResult(WSSecurityEngineResult result)
          Store a WSSecurityEngineResult for later retrieval.
 void addTokenElement(org.w3c.dom.Element elem)
          Store a token element for later retrieval.
 void clear()
          Clears the data stored in this object
 CallbackLookup getCallbackLookup()
           
 Crypto getCrypto()
           
 org.w3c.dom.Document getDocument()
           
 org.w3c.dom.Element getProtectionElement(java.lang.String uri)
          Get a protection element for the given (wsu) Id.
 WSSecurityEngineResult getResult(java.lang.String uri)
          Get a WSSecurityEngineResult for the given Id.
 org.w3c.dom.Element getTokenElement(java.lang.String uri)
          Get a token Element for the given Id.
 void setCallbackLookup(CallbackLookup callbackLookup)
           
 void setCrypto(Crypto crypto)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDocInfo

public WSDocInfo(org.w3c.dom.Document doc)
Method Detail

clear

public void clear()
Clears the data stored in this object


addTokenElement

public void addTokenElement(org.w3c.dom.Element elem)
Store a token element for later retrieval. The token element is one of: - SecurityTokenReference element - BinarySecurityToken element - SAML Assertion element - SecurityContextToken element - UsernameToken element - DerivedKeyToken element - Timestamp element

Parameters:
elem - is the token element to store

getTokenElement

public org.w3c.dom.Element getTokenElement(java.lang.String uri)
Get a token Element for the given Id. The Id can be either a wsu:Id or a SAML AssertionID/ID. TODO think about if it is better to restrict the default Id to wsu:Id?

Parameters:
uri - is the (relative) uri of the id
Returns:
the token element or null if nothing found

addProtectionElement

public void addProtectionElement(org.w3c.dom.Element element)
Store a protection element for later retrieval.

Parameters:
element - is the protection element to store

getProtectionElement

public org.w3c.dom.Element getProtectionElement(java.lang.String uri)
Get a protection element for the given (wsu) Id.

Parameters:
uri - is the (relative) uri of the id
Returns:
the protection element or null if nothing found

addResult

public void addResult(WSSecurityEngineResult result)
Store a WSSecurityEngineResult for later retrieval.

Parameters:
result - is the WSSecurityEngineResult to store

getResult

public WSSecurityEngineResult getResult(java.lang.String uri)
Get a WSSecurityEngineResult for the given Id.

Parameters:
uri - is the (relative) uri of the id
Returns:
the WSSecurityEngineResult or null if nothing found

getCrypto

public Crypto getCrypto()
Returns:
the signature crypto class used to process the signature/verify

getDocument

public org.w3c.dom.Document getDocument()
Returns:
the document

setCrypto

public void setCrypto(Crypto crypto)
Parameters:
crypto - is the signature crypto class used to process signature/verify

setCallbackLookup

public void setCallbackLookup(CallbackLookup callbackLookup)
Parameters:
callbackLookup - The CallbackLookup object to retrieve elements

getCallbackLookup

public CallbackLookup getCallbackLookup()
Returns:
the CallbackLookup object to retrieve elements


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.