com.sun.org.apache.xml.internal.security.algorithms.implementations.SignatureDSA Java Examples

The following examples show how to use com.sun.org.apache.xml.internal.security.algorithms.implementations.SignatureDSA. 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: SignatureAlgorithm.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #2
Source File: SignatureAlgorithm.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #3
Source File: SignatureAlgorithm.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #4
Source File: SignatureAlgorithm.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(SignatureDSA.URI, SignatureDSA.class);
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #5
Source File: SignatureAlgorithm.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #6
Source File: SignatureAlgorithm.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #7
Source File: SignatureAlgorithm.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #8
Source File: SignatureAlgorithm.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #9
Source File: SignatureAlgorithm.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #10
Source File: SignatureAlgorithm.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #11
Source File: SignatureAlgorithm.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(SignatureDSA.URI, SignatureDSA.class);
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #12
Source File: SignatureAlgorithm.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(SignatureDSA.URI, SignatureDSA.class);
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #13
Source File: SignatureAlgorithm.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA, SignatureDSA.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_DSA_SHA256, SignatureDSA.SHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #14
Source File: SignatureAlgorithm.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(SignatureDSA.URI, SignatureDSA.class);
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}
 
Example #15
Source File: SignatureAlgorithm.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * This method registers the default algorithms.
 */
public static void registerDefaultAlgorithms() {
    algorithmHash.put(SignatureDSA.URI, SignatureDSA.class);
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, SignatureBaseRSA.SignatureRSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA1, IntegrityHmac.IntegrityHmacSHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_NOT_RECOMMENDED_RSA_MD5,
        SignatureBaseRSA.SignatureRSAMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_RIPEMD160,
        SignatureBaseRSA.SignatureRSARIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA256, SignatureBaseRSA.SignatureRSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA384, SignatureBaseRSA.SignatureRSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA512, SignatureBaseRSA.SignatureRSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA1, SignatureECDSA.SignatureECDSASHA1.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA256, SignatureECDSA.SignatureECDSASHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA384, SignatureECDSA.SignatureECDSASHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_SIGNATURE_ECDSA_SHA512, SignatureECDSA.SignatureECDSASHA512.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_NOT_RECOMMENDED_MD5, IntegrityHmac.IntegrityHmacMD5.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_RIPEMD160, IntegrityHmac.IntegrityHmacRIPEMD160.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA256, IntegrityHmac.IntegrityHmacSHA256.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA384, IntegrityHmac.IntegrityHmacSHA384.class
    );
    algorithmHash.put(
        XMLSignature.ALGO_ID_MAC_HMAC_SHA512, IntegrityHmac.IntegrityHmacSHA512.class
    );
}