List of usage examples for javax.xml.crypto.dsig.spec HMACParameterSpec HMACParameterSpec
public HMACParameterSpec(int outputLength)
HMACParameterSpec
with the specified truncation length. 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); }