APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.crypto.dsig.spec

public final Class HMACParameterSpec

extends Object
implements SignatureMethodParameterSpec
Class Inheritance
All Implemented Interfaces
javax.xml.crypto.dsig.spec.SignatureMethodParameterSpec, java.security.spec.AlgorithmParameterSpec
Imports
javax.xml.crypto.dsig.SignatureMethod

Parameters for the XML Signature HMAC Algorithm. The parameters include an optional output length which specifies the MAC truncation length in bits. The resulting HMAC will be truncated to the specified number of bits. If the parameter is not specified, then this implies that all the bits of the hash are to be output. The XML Schema Definition of the HMACOutputLength element is defined as:

<element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
<simpleType name="HMACOutputLengthType">
  <restriction base="integer"/>
</simpleType>
Authors
Sean Mullan, JSR 105 Expert Group
Since
1.6
See Also
SignatureMethod, RFC 2104

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public
HMACParameterSpec(int
the truncation length in number of bits
outputLength
)

Creates an HMACParameterSpec with the specified truncation length.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the truncation length in number of bits
getOutputLength
()

Returns the truncation length.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

outputLengthback to summary
private int outputLength

Constructor Detail

HMACParameterSpecback to summary
public HMACParameterSpec(int outputLength)

Creates an HMACParameterSpec with the specified truncation length.

Parameters
outputLength:int

the truncation length in number of bits

Method Detail

getOutputLengthback to summary
public int getOutputLength()

Returns the truncation length.

Returns:int

the truncation length in number of bits