Example usage for javax.xml.crypto.dsig.spec HMACParameterSpec HMACParameterSpec

List of usage examples for javax.xml.crypto.dsig.spec HMACParameterSpec HMACParameterSpec

Introduction

In this page you can find the example usage for javax.xml.crypto.dsig.spec HMACParameterSpec HMACParameterSpec.

Prototype

public HMACParameterSpec(int outputLength) 

Source Link

Document

Creates an HMACParameterSpec with the specified truncation length.

Usage

From source file:org.apache.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.java

SignatureMethodParameterSpec unmarshalParams(Element paramsElem) throws MarshalException {
    outputLength = Integer.valueOf(paramsElem.getFirstChild().getNodeValue()).intValue();
    outputLengthSet = true;//from   w w  w.  j  a va 2  s . c o m
    if (log.isDebugEnabled()) {
        log.debug("unmarshalled outputLength: " + outputLength);
    }
    return new HMACParameterSpec(outputLength);
}

From source file:org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.java

SignatureMethodParameterSpec unmarshalParams(Element paramsElem) throws MarshalException {
    outputLength = new Integer(paramsElem.getFirstChild().getNodeValue()).intValue();
    outputLengthSet = true;//from  ww  w.ja  v a  2  s.c om
    if (log.isDebugEnabled()) {
        log.debug("unmarshalled outputLength: " + outputLength);
    }
    return new HMACParameterSpec(outputLength);
}