* Her we get some information about the document that is being processed,
* in partucular the crypto implementation, and already detected BST that
* may be used later during dereferencing.
*/
WSDocInfo wsDocInfo = WSDocInfoStore.lookup(docHash);
if (secRef.containsReference()) {
Element token =
secRef.getTokenElement(sig.getDocument(), wsDocInfo);
/* check token type: We support Derivedkey tokens now.
* We will support security context tokens.
*/