public class WSDocInfo extends Object
Modifier and Type | Method and Description |
---|---|
void |
addProtectionElement(Element element)
Deprecated.
|
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
|
CallbackLookup |
getCallbackLookup() |
Crypto |
getCrypto() |
Document |
getDocument() |
Element |
getProtectionElement(String uri)
Deprecated.
|
WSSecurityEngineResult |
getResult(String uri)
Get a WSSecurityEngineResult for the given Id.
|
WSSecurityEngineResult |
getResultByTag(Integer tag,
String uri)
Get a WSSecurityEngineResult of the given Integer tag for the given Id
|
List<WSSecurityEngineResult> |
getResultsByTag(Integer tag)
Get a list of WSSecurityEngineResults of the given Integer tag
|
Element |
getSecurityHeader() |
Element |
getTokenElement(String uri)
Get a token Element for the given Id.
|
void |
setCallbackLookup(CallbackLookup callbackLookup) |
void |
setCrypto(Crypto crypto) |
void |
setSecurityHeader(Element securityHeader)
Sets the wsse header being processed
|
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 addProtectionElement(Element element)
element
- is the protection element to storepublic Element getProtectionElement(String uri)
uri
- is the (relative) uri of the idpublic void addResult(WSSecurityEngineResult result)
result
- is the WSSecurityEngineResult to storepublic WSSecurityEngineResult getResult(String uri)
uri
- is the (relative) uri of the idpublic List<WSSecurityEngineResult> getResultsByTag(Integer tag)
public WSSecurityEngineResult getResultByTag(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 © 2004–2015 The Apache Software Foundation. All rights reserved.