当前位置: 首页>>代码示例>>Java>>正文


Java IntegrityHmac类代码示例

本文整理汇总了Java中com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac的典型用法代码示例。如果您正苦于以下问题:Java IntegrityHmac类的具体用法?Java IntegrityHmac怎么用?Java IntegrityHmac使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


IntegrityHmac类属于com.sun.org.apache.xml.internal.security.algorithms.implementations包,在下文中一共展示了IntegrityHmac类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SignatureAlgorithm

import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac; //导入依赖的package包/类
/**
 * Constructor SignatureAlgorithm
 *
 * @param doc
 * @param algorithmURI
 * @param hmacOutputLength
 * @throws XMLSecurityException
 */
public SignatureAlgorithm(
    Document doc, String algorithmURI, int hmacOutputLength
) throws XMLSecurityException {
    super(doc, algorithmURI);
    this.algorithmURI = algorithmURI;

    signatureAlgorithm = getSignatureAlgorithmSpi(algorithmURI);
    signatureAlgorithm.engineGetContextFromElement(this.constructionElement);

    signatureAlgorithm.engineSetHMACOutputLength(hmacOutputLength);
    ((IntegrityHmac)signatureAlgorithm).engineAddContextToElement(constructionElement);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:21,代码来源:SignatureAlgorithm.java

示例2: SignatureAlgorithm

import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac; //导入依赖的package包/类
/**
 * Constructor SignatureAlgorithm
 *
 * @param doc
 * @param algorithmURI
 * @param HMACOutputLength
 * @throws XMLSecurityException
 */
public SignatureAlgorithm(
        Document doc, String algorithmURI, int HMACOutputLength)
           throws XMLSecurityException {

   this(doc, algorithmURI);
   this.algorithmURI=algorithmURI;
   initializeAlgorithm(true);
   this._signatureAlgorithm.engineSetHMACOutputLength(HMACOutputLength);
   ((IntegrityHmac)this._signatureAlgorithm)
      .engineAddContextToElement(this._constructionElement);
}
 
开发者ID:openjdk,项目名称:jdk7-jdk,代码行数:20,代码来源:SignatureAlgorithm.java

示例3: SignatureAlgorithm

import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac; //导入依赖的package包/类
/**
 * Constructor SignatureAlgorithm
 *
 * @param doc
 * @param algorithmURI
 * @param hmacOutputLength
 * @throws XMLSecurityException
 */
public SignatureAlgorithm(
    Document doc, String algorithmURI, int hmacOutputLength
) throws XMLSecurityException {
    super(doc, algorithmURI);
    this.algorithmURI = algorithmURI;

    signatureAlgorithm = getSignatureAlgorithmSpi(algorithmURI);
    signatureAlgorithm.engineGetContextFromElement(this._constructionElement);

    signatureAlgorithm.engineSetHMACOutputLength(hmacOutputLength);
    ((IntegrityHmac)signatureAlgorithm).engineAddContextToElement(_constructionElement);
}
 
开发者ID:greghaskins,项目名称:openjdk-jdk7u-jdk,代码行数:21,代码来源:SignatureAlgorithm.java

示例4: registerDefaultAlgorithms

import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac; //导入依赖的package包/类
/**
 * 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
    );
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:57,代码来源:SignatureAlgorithm.java

示例5: registerDefaultAlgorithms

import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac; //导入依赖的package包/类
/**
 * 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
    );
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:62,代码来源:SignatureAlgorithm.java

示例6: registerDefaultAlgorithms

import com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac; //导入依赖的package包/类
/**
 * 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_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_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
    );
}
 
开发者ID:greghaskins,项目名称:openjdk-jdk7u-jdk,代码行数:50,代码来源:SignatureAlgorithm.java


注:本文中的com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。