public class WSDocInfo extends Object
Modifier and Type | Method and Description |
---|---|
void |
addResult(WSSecurityEngineResult result)
Store a WSSecurityEngineResult for later retrieval.
|
void |
addTokenElement(Element element)
Store a token element for later retrieval.
|
void |
addTokenElement(Element element,
boolean checkMultipleElements)
Store a token element for later retrieval.
|
void |
clear()
Clears the data stored in this object
|
Map<Integer,List<WSSecurityEngineResult>> |
getActionResults()
Return a copy of the map between security actions + results.
|
CallbackLookup |
getCallbackLookup() |
Crypto |
getCrypto() |
Document |
getDocument() |
WSSecurityEngineResult |
getResult(String uri)
Get a WSSecurityEngineResult for the given Id.
|
List<WSSecurityEngineResult> |
getResults()
Get a copy of the security results list.
|
List<WSSecurityEngineResult> |
getResultsByTag(Integer tag)
Get a unmodifiable list of WSSecurityEngineResults of the given Integer tag
|
Element |
getSecurityHeader() |
Element |
getTokenElement(String uri)
Get a token Element for the given Id.
|
boolean |
hasResult(Integer tag,
String uri)
See whether we have a WSSecurityEngineResult of the given Integer tag for the given Id
|
void |
setCallbackLookup(CallbackLookup callbackLookup) |
void |
setCrypto(Crypto crypto) |
void |
setSecurityHeader(Element securityHeader)
Sets the wsse header being processed
|
void |
setTokenOnContext(String uri,
DOMCryptoContext context) |
void |
setTokensOnContext(DOMCryptoContext context)
Set all stored tokens on the DOMCryptoContext argument
|
public WSDocInfo(Document doc)
public void clear()
public void addTokenElement(Element element) throws WSSecurityException
element
- is the token element to storeWSSecurityException
public void addTokenElement(Element element, boolean checkMultipleElements) throws WSSecurityException
element
- is the token element to storecheckMultipleElements
- check for a previously stored element with the same Id.WSSecurityException
public Element getTokenElement(String uri)
uri
- is the (relative) uri of the idpublic void setTokensOnContext(DOMCryptoContext context)
context
- public void setTokenOnContext(String uri, DOMCryptoContext context)
public void addResult(WSSecurityEngineResult result)
result
- is the WSSecurityEngineResult to storepublic List<WSSecurityEngineResult> getResults()
public Map<Integer,List<WSSecurityEngineResult>> getActionResults()
public WSSecurityEngineResult getResult(String uri)
uri
- is the (relative) uri of the idpublic List<WSSecurityEngineResult> getResultsByTag(Integer tag)
public boolean hasResult(Integer tag, String uri)
public Crypto getCrypto()
public Document getDocument()
public void setCrypto(Crypto crypto)
crypto
- is the signature crypto class used to
process signature/verifypublic void setCallbackLookup(CallbackLookup callbackLookup)
callbackLookup
- The CallbackLookup object to retrieve elementspublic CallbackLookup getCallbackLookup()
public Element getSecurityHeader()
public void setSecurityHeader(Element securityHeader)
securityHeader
- Copyright © 2021 JBoss by Red Hat. All rights reserved.