List<WSSecurityEngineResult> foundResults = wsDocInfo.getResultsByTag(WSConstants.TS); Timestamp timeStamp = null; if (foundResults.isEmpty()) {
List<WSSecurityEngineResult> foundResults = wsDocInfo.getResultsByTag(WSConstants.TS); Timestamp timeStamp = null; if (foundResults.isEmpty()) {
public static void verifySignedElement(Element elem, WSDocInfo wsDocInfo) throws WSSecurityException { List<WSSecurityEngineResult> signedResults = wsDocInfo.getResultsByTag(WSConstants.SIGN); if (signedResults != null) { for (WSSecurityEngineResult signedResult : signedResults) { @SuppressWarnings("unchecked") List<WSDataRef> dataRefs = (List<WSDataRef>)signedResult.get(WSSecurityEngineResult.TAG_DATA_REF_URIS); if (dataRefs != null) { for (WSDataRef dataRef : dataRefs) { if (isElementOrAncestorSigned(elem, dataRef.getProtectedElement())) { return; } } } } } throw new WSSecurityException( WSSecurityException.FAILED_CHECK, "requiredElementNotSigned", new Object[] {elem}); }
public static void verifySignedElement(Element elem, WSDocInfo wsDocInfo) throws WSSecurityException { List<WSSecurityEngineResult> signedResults = wsDocInfo.getResultsByTag(WSConstants.SIGN); if (signedResults != null) { for (WSSecurityEngineResult signedResult : signedResults) { @SuppressWarnings("unchecked") List<WSDataRef> dataRefs = (List<WSDataRef>)signedResult.get(WSSecurityEngineResult.TAG_DATA_REF_URIS); if (dataRefs != null) { for (WSDataRef dataRef : dataRefs) { if (isElementOrAncestorSigned(elem, dataRef.getProtectedElement())) { return; } } } } } throw new WSSecurityException( WSSecurityException.FAILED_CHECK, "requiredElementNotSigned", new Object[] {elem}); }
byte[] keyBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { BinarySecurity bstToken = byte[] skiBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { X509Certificate[] certs = String kiValue = secRef.getKeyIdentifierValue(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { X509Certificate[] certs =
byte[] keyBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { BinarySecurity bstToken = byte[] skiBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { X509Certificate[] certs = String kiValue = secRef.getKeyIdentifierValue(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { X509Certificate[] certs =
byte[] keyBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { BinarySecurity bstToken =
byte[] keyBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { BinarySecurity bstToken =
byte[] keyBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { BinarySecurity bstToken =
byte[] keyBytes = secRef.getSKIBytes(); List<WSSecurityEngineResult> resultsList = wsDocInfo.getResultsByTag(WSConstants.BST); for (WSSecurityEngineResult bstResult : resultsList) { BinarySecurity bstToken =