Package org.apache.wss4j.dom
Class WSDocInfo
java.lang.Object
org.apache.wss4j.dom.WSDocInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResult(WSSecurityEngineResult result) Store a WSSecurityEngineResult for later retrieval.voidaddTokenElement(Element element) Store a token element for later retrieval.voidaddTokenElement(Element element, boolean checkMultipleElements) Store a token element for later retrieval.voidclear()Clears the data stored in this objectReturn a copy of the map between security actions + results.Get a WSSecurityEngineResult for the given Id.Get a copy of the security results list.getResultsByTag(Integer tag) Get a unmodifiable list of WSSecurityEngineResults of the given Integer taggetTokenElement(String uri) Get a token Element for the given Id.booleanSee whether we have a WSSecurityEngineResult of the given Integer tag for the given IdvoidsetCallbackLookup(CallbackLookup callbackLookup) voidvoidsetSecurityHeader(Element securityHeader) Sets the wsse header being processedvoidsetTokenOnContext(String uri, DOMCryptoContext context) voidsetTokensOnContext(DOMCryptoContext context) Set all stored tokens on the DOMCryptoContext argument
-
Constructor Details
-
WSDocInfo
-
-
Method Details
-
clear
public void clear()Clears the data stored in this object -
addTokenElement
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(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 storecheckMultipleElements- check for a previously stored element with the same Id.- Throws:
WSSecurityException
-
getTokenElement
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
-
setTokensOnContext
Set all stored tokens on the DOMCryptoContext argument- Parameters:
context-
-
setTokenOnContext
-
addResult
Store a WSSecurityEngineResult for later retrieval.- Parameters:
result- is the WSSecurityEngineResult to store
-
getResults
Get a copy of the security results list. Modifying the subsequent list does not change the internal results list. -
getActionResults
Return a copy of the map between security actions + results. Modifying the subsequent map does not change the internal map. -
getResult
Get a WSSecurityEngineResult for the given Id.- Parameters:
uri- is the (relative) uri of the id- Returns:
- the WSSecurityEngineResult or null if nothing found
-
getResultsByTag
Get a unmodifiable list of WSSecurityEngineResults of the given Integer tag -
hasResult
See whether we have a WSSecurityEngineResult of the given Integer tag for the given Id -
getCrypto
- Returns:
- the signature crypto class used to process the signature/verify
-
getDocument
- Returns:
- the document
-
setCrypto
- Parameters:
crypto- is the signature crypto class used to process signature/verify
-
setCallbackLookup
- Parameters:
callbackLookup- The CallbackLookup object to retrieve elements
-
getCallbackLookup
- Returns:
- the CallbackLookup object to retrieve elements
-
getSecurityHeader
- Returns:
- the wsse header being processed
-
setSecurityHeader
Sets the wsse header being processed- Parameters:
securityHeader-
-