@@ -0,0 +1,804 @@
+package eu.europa.esig.dss.token;%0A%0Aimport java.util.List;%0A%0Aimport org.apache.commons.codec.binary.Base64;%0A%0Aimport eu.europa.esig.dss.DigestAlgorithm;%0Aimport eu.europa.esig.dss.SignatureValue;%0Aimport eu.europa.esig.dss.ToBeSigned;%0A%0Apublic class MSCAPISignatureTokenApp %7B%0A%0A%09public static void main(String%5B%5D args)%7B%0A%0A%09%09MSCAPISignatureToken token = new MSCAPISignatureToken();%0A%0A%09%09List%3CDSSPrivateKeyEntry%3E keys = token.getKeys();%0A%09%09for (DSSPrivateKeyEntry entry : keys) %7B%0A%09%09%09System.out.println(entry.getCertificate().getCertificate());%0A%09%09%7D%0A%0A%09%09ToBeSigned toBeSigned = new ToBeSigned(%22Hello world%22.getBytes());%0A%09%09SignatureValue signatureValue = token.sign(toBeSigned, DigestAlgorithm.SHA256, keys.get(0));%0A%0A%09%09System.out.println(%22Signature value : %22 + Base64.encodeBase64String(signatureValue.getValue()));%0A%09%7D%0A%0A%7D%0A

Add simple application test to interact with MSCAPI