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)
          Deprecated.  
 void addResult(WSSecurityEngineResult result)
          Store a WSSecurityEngineResult for later retrieval.
 void addTokenElement(org.w3c.dom.Element element)
          Deprecated.  
 void addTokenElement(org.w3c.dom.Element element, boolean checkMultipleElements)
          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)
          Deprecated.  
 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 element)
                     throws WSSecurityException
Deprecated. 

Store a token element for later retrieval. Before storing the token, we check for a previously processed token with the same (wsu/SAML) Id.

Parameters:
element - is the token element to store
Throws:
WSSecurityException

addTokenElement

public void addTokenElement(org.w3c.dom.Element element,
                            boolean checkMultipleElements)
                     throws WSSecurityException
Store a token element for later retrieval. Before storing the token, we check for a previously processed token with the same (wsu/SAML) Id.

Parameters:
element - is the token element to store
checkMultipleElements - check for a previously stored element with the same Id.
Throws:
WSSecurityException

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.

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)
Deprecated. 

Store a protection element for later retrieval. This is only used for the creation/outbound case.

Parameters:
element - is the protection element to store

getProtectionElement

public org.w3c.dom.Element getProtectionElement(java.lang.String uri)
Deprecated. 

Get a protection element for the given (wsu/SAML) 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.