Java Code Examples for com.sun.org.apache.xml.internal.security.signature.XMLSignature#ALGO_ID_MAC_HMAC_SHA1
The following examples show how to use
com.sun.org.apache.xml.internal.security.signature.XMLSignature#ALGO_ID_MAC_HMAC_SHA1 .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TruncateHMAC.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 2
Source File: TruncateHMAC.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 3
Source File: TruncateHMAC.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 4
Source File: TruncateHMAC.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 5
Source File: TruncateHMAC.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 6
Source File: TruncateHMAC.java From hottub with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 7
Source File: TruncateHMAC.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 8
Source File: TruncateHMAC.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 9
Source File: TruncateHMAC.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 10
Source File: TruncateHMAC.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 11
Source File: TruncateHMAC.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 12
Source File: TruncateHMAC.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private static void generate_hmac_sha1_40() throws Exception { System.out.println("Generating "); Document doc = dbf.newDocumentBuilder().newDocument(); XMLSignature sig = new XMLSignature (doc, null, XMLSignature.ALGO_ID_MAC_HMAC_SHA1, 40, Canonicalizer.ALGO_ID_C14N_OMIT_COMMENTS); try { sig.sign(getSecretKey("secret".getBytes("ASCII"))); System.out.println("FAILED"); atLeastOneFailed = true; } catch (XMLSignatureException xse) { System.out.println(xse.getMessage()); System.out.println("PASSED"); } }
Example 13
Source File: IntegrityHmac.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }
Example 14
Source File: IntegrityHmac.java From jdk8u_jdk with GNU General Public License v2.0 | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }
Example 15
Source File: IntegrityHmac.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }
Example 16
Source File: IntegrityHmac.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }
Example 17
Source File: IntegrityHmac.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }
Example 18
Source File: IntegrityHmac.java From JDKSourceCode1.8 with MIT License | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }
Example 19
Source File: IntegrityHmac.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }
Example 20
Source File: IntegrityHmac.java From dragonwell8_jdk with GNU General Public License v2.0 | 2 votes |
/** * Method engineGetURI * @inheritDoc * */ public String engineGetURI() { return XMLSignature.ALGO_ID_MAC_HMAC_SHA1; }