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

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

Introduction

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

Prototype

public int getOutputLength() 

Source Link

Document

Returns the truncation length.

Usage

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

boolean paramsEqual(AlgorithmParameterSpec spec) {
    if (getParameterSpec() == spec) {
        return true;
    }//from w  ww  .j a v a 2s  .  c o m
    if (!(spec instanceof HMACParameterSpec)) {
        return false;
    }
    HMACParameterSpec ospec = (HMACParameterSpec) spec;

    return (outputLength == ospec.getOutputLength());
}