APIdia Launch Partner
Top Description Inners Fields Constructors Methods
org.jcp.xml.dsig.internal.dom

public abstract Class DOMHMACSignatureMethod

extends AbstractDOMSignatureMethod
Class Inheritance
Known Direct Subclasses
org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.SHA1, org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.SHA224, org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.SHA256, org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.SHA384, org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.SHA512, org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.RIPEMD160
Imports
java.security.InvalidAlgorithmParameterException, .InvalidKeyException, .Key, .MessageDigest, .NoSuchAlgorithmException, .Provider, .SignatureException, java.security.spec.AlgorithmParameterSpec, javax.crypto.Mac, .SecretKey, javax.xml.crypto.MarshalException, javax.xml.crypto.dsig.SignatureMethod, .SignedInfo, .XMLSignContext, .XMLSignature, .XMLSignatureException, .XMLValidateContext, javax.xml.crypto.dsig.spec.HMACParameterSpec, .SignatureMethodParameterSpec, org.jcp.xml.dsig.internal.MacOutputStream, org.w3c.dom.Document, .Element

DOM-based implementation of HMAC SignatureMethod.

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final String
private Mac
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
pack-priv static final String
private static final Logger
private int
private boolean
private SignatureMethodParameterSpec

Constructor Summary

AccessConstructor and Description
pack-priv
DOMHMACSignatureMethod(AlgorithmParameterSpec
algorithm-specific parameters (may be null)
params
)

Creates a DOMHMACSignatureMethod with the specified params

pack-priv
DOMHMACSignatureMethod(Element
a SignatureMethod element
smElem
)

Creates a DOMHMACSignatureMethod from an element.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
checkParams(SignatureMethodParameterSpec params)

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.checkParams.

Checks if the specified parameters are valid for this algorithm.

pack-priv AbstractDOMSignatureMethod.Type
getAlgorithmType()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getAlgorithmType.

Returns the type of signature algorithm.

pack-priv abstract int
getDigestLength()

Returns the output length of the hash/digest.

public final AlgorithmParameterSpec
getParameterSpec()

Implements javax.xml.crypto.dsig.SignatureMethod.getParameterSpec.

Returns the algorithm-specific input parameters of this SignatureMethod.

pack-priv void
marshalParams(Element parent, String prefix)

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.marshalParams.

Marshals the algorithm-specific parameters to an Element and appends it to the specified parent element.

pack-priv boolean
paramsEqual(AlgorithmParameterSpec spec)

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.paramsEqual.

Returns true if parameters are equal; false otherwise.

pack-priv byte[]
sign(Key key, SignedInfo si, XMLSignContext context)

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.sign.

Signs the bytes with the specified key, using the underlying Signature or Mac algorithm.

pack-priv SignatureMethodParameterSpec
unmarshalParams(Element paramsElem)

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.unmarshalParams.

Unmarshals SignatureMethodParameterSpec from the specified Element.

pack-priv boolean
verify(Key key, SignedInfo si, byte[] sig, XMLValidateContext context)

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.verify.

Verifies the passed-in signature with the specified key, using the underlying Signature or Mac algorithm.

Inherited from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod:
equalsgetJCAAlgorithmhashCodemarshal

Field Detail

DOM_SIGNATURE_PROVIDERback to summary
private static final String DOM_SIGNATURE_PROVIDER
hmacback to summary
private Mac hmac
HMAC_RIPEMD160back to summary
pack-priv static final String HMAC_RIPEMD160
HMAC_SHA224back to summary
pack-priv static final String HMAC_SHA224

Hides javax.xml.crypto.dsig.SignatureMethod.HMAC_SHA224.

HMAC_SHA256back to summary
pack-priv static final String HMAC_SHA256

Hides javax.xml.crypto.dsig.SignatureMethod.HMAC_SHA256.

HMAC_SHA384back to summary
pack-priv static final String HMAC_SHA384

Hides javax.xml.crypto.dsig.SignatureMethod.HMAC_SHA384.

HMAC_SHA512back to summary
pack-priv static final String HMAC_SHA512

Hides javax.xml.crypto.dsig.SignatureMethod.HMAC_SHA512.

LOGback to summary
private static final Logger LOG
outputLengthback to summary
private int outputLength
outputLengthSetback to summary
private boolean outputLengthSet
paramsback to summary
private SignatureMethodParameterSpec params

Constructor Detail

DOMHMACSignatureMethodback to summary
pack-priv DOMHMACSignatureMethod(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException

Creates a DOMHMACSignatureMethod with the specified params

Parameters
params:AlgorithmParameterSpec

algorithm-specific parameters (may be null)

Exceptions
InvalidAlgorithmParameterException:
if params are inappropriate
DOMHMACSignatureMethodback to summary
pack-priv DOMHMACSignatureMethod(Element smElem) throws MarshalException

Creates a DOMHMACSignatureMethod from an element.

Parameters
smElem:Element

a SignatureMethod element

Method Detail

checkParamsback to summary
pack-priv void checkParams(SignatureMethodParameterSpec params) throws InvalidAlgorithmParameterException

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.checkParams.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.checkParams.

Checks if the specified parameters are valid for this algorithm. By default, this method throws an exception if parameters are specified since most SignatureMethod algorithms do not have parameters. Subclasses should override it if they have parameters.

Annotations
@Override
Exceptions
InvalidAlgorithmParameterException:
if the parameters are not appropriate for this signature method
getAlgorithmTypeback to summary
pack-priv AbstractDOMSignatureMethod.Type getAlgorithmType()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getAlgorithmType.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getAlgorithmType.

Returns the type of signature algorithm.

Annotations
@Override
getDigestLengthback to summary
pack-priv abstract int getDigestLength()

Returns the output length of the hash/digest.

getParameterSpecback to summary
public final AlgorithmParameterSpec getParameterSpec()

Implements javax.xml.crypto.dsig.SignatureMethod.getParameterSpec.

Doc from javax.xml.crypto.dsig.SignatureMethod.getParameterSpec.

Returns the algorithm-specific input parameters of this SignatureMethod.

The returned parameters can be typecast to a SignatureMethodParameterSpec object.

Annotations
@Override
marshalParamsback to summary
pack-priv void marshalParams(Element parent, String prefix) throws MarshalException

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.marshalParams.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.marshalParams.

Marshals the algorithm-specific parameters to an Element and appends it to the specified parent element. By default, this method throws an exception since most SignatureMethod algorithms do not have parameters. Subclasses should override it if they have parameters.

Annotations
@Override
Exceptions
MarshalException:
if the parameters cannot be marshalled
paramsEqualback to summary
pack-priv boolean paramsEqual(AlgorithmParameterSpec spec)

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.paramsEqual.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.paramsEqual.

Returns true if parameters are equal; false otherwise. Subclasses should override this method to compare algorithm-specific parameters.

Annotations
@Override
signback to summary
pack-priv byte[] sign(Key key, SignedInfo si, XMLSignContext context) throws InvalidKeyException, XMLSignatureException

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.sign.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.sign.

Signs the bytes with the specified key, using the underlying Signature or Mac algorithm.

Annotations
@Override
Exceptions
InvalidKeyException:
if the key is improperly encoded, of the wrong type, or parameters are missing, etc
XMLSignatureException:
if an unexpected error occurs
unmarshalParamsback to summary
pack-priv SignatureMethodParameterSpec unmarshalParams(Element paramsElem) throws MarshalException

Overrides org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.unmarshalParams.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.unmarshalParams.

Unmarshals SignatureMethodParameterSpec from the specified Element. By default, this method throws an exception since most SignatureMethod algorithms do not have parameters. Subclasses should override it if they have parameters.

Annotations
@Override
Exceptions
MarshalException:
if the parameters cannot be unmarshalled
verifyback to summary
pack-priv boolean verify(Key key, SignedInfo si, byte[] sig, XMLValidateContext context) throws InvalidKeyException, SignatureException, XMLSignatureException

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.verify.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.verify.

Verifies the passed-in signature with the specified key, using the underlying Signature or Mac algorithm.

Annotations
@Override
Exceptions
InvalidKeyException:
if the key is improperly encoded, of the wrong type, or parameters are missing, etc
SignatureException:
if an unexpected error occurs, such as the passed in signature is improperly encoded
XMLSignatureException:
if an unexpected error occurs
org.jcp.xml.dsig.internal.dom back to summary

pack-priv final Class DOMHMACSignatureMethod.RIPEMD160

extends DOMHMACSignatureMethod
Class Inheritance

Field Summary

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
HMAC_RIPEMD160HMAC_SHA224HMAC_SHA256HMAC_SHA384HMAC_SHA512

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

pack-priv int
getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

pack-priv String
getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
checkParamsgetAlgorithmTypegetParameterSpecmarshalParamsparamsEqualsignunmarshalParamsverify

Constructor Detail

RIPEMD160back to summary
pack-priv RIPEMD160(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
RIPEMD160back to summary
pack-priv RIPEMD160(Element dmElem) throws MarshalException

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Doc from javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

Annotations
@Override
getDigestLengthback to summary
pack-priv int getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Doc from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

Annotations
@Override
getJCAAlgorithmback to summary
pack-priv String getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Annotations
@Override
org.jcp.xml.dsig.internal.dom back to summary

pack-priv final Class DOMHMACSignatureMethod.SHA1

extends DOMHMACSignatureMethod
Class Inheritance

Field Summary

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
HMAC_RIPEMD160HMAC_SHA224HMAC_SHA256HMAC_SHA384HMAC_SHA512

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
SHA1(Element dmElem)

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

pack-priv int
getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

pack-priv String
getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
checkParamsgetAlgorithmTypegetParameterSpecmarshalParamsparamsEqualsignunmarshalParamsverify

Constructor Detail

SHA1back to summary
pack-priv SHA1(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
SHA1back to summary
pack-priv SHA1(Element dmElem) throws MarshalException

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Doc from javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

Annotations
@Override
getDigestLengthback to summary
pack-priv int getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Doc from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

Annotations
@Override
getJCAAlgorithmback to summary
pack-priv String getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Annotations
@Override
org.jcp.xml.dsig.internal.dom back to summary

pack-priv final Class DOMHMACSignatureMethod.SHA224

extends DOMHMACSignatureMethod
Class Inheritance

Field Summary

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
HMAC_RIPEMD160HMAC_SHA224HMAC_SHA256HMAC_SHA384HMAC_SHA512

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
SHA224(Element dmElem)

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

pack-priv int
getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

pack-priv String
getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
checkParamsgetAlgorithmTypegetParameterSpecmarshalParamsparamsEqualsignunmarshalParamsverify

Constructor Detail

SHA224back to summary
pack-priv SHA224(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
SHA224back to summary
pack-priv SHA224(Element dmElem) throws MarshalException

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Doc from javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

Annotations
@Override
getDigestLengthback to summary
pack-priv int getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Doc from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

Annotations
@Override
getJCAAlgorithmback to summary
pack-priv String getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Annotations
@Override
org.jcp.xml.dsig.internal.dom back to summary

pack-priv final Class DOMHMACSignatureMethod.SHA256

extends DOMHMACSignatureMethod
Class Inheritance

Field Summary

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
HMAC_RIPEMD160HMAC_SHA224HMAC_SHA256HMAC_SHA384HMAC_SHA512

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
SHA256(Element dmElem)

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

pack-priv int
getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

pack-priv String
getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
checkParamsgetAlgorithmTypegetParameterSpecmarshalParamsparamsEqualsignunmarshalParamsverify

Constructor Detail

SHA256back to summary
pack-priv SHA256(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
SHA256back to summary
pack-priv SHA256(Element dmElem) throws MarshalException

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Doc from javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

Annotations
@Override
getDigestLengthback to summary
pack-priv int getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Doc from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

Annotations
@Override
getJCAAlgorithmback to summary
pack-priv String getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Annotations
@Override
org.jcp.xml.dsig.internal.dom back to summary

pack-priv final Class DOMHMACSignatureMethod.SHA384

extends DOMHMACSignatureMethod
Class Inheritance

Field Summary

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
HMAC_RIPEMD160HMAC_SHA224HMAC_SHA256HMAC_SHA384HMAC_SHA512

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
SHA384(Element dmElem)

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

pack-priv int
getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

pack-priv String
getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
checkParamsgetAlgorithmTypegetParameterSpecmarshalParamsparamsEqualsignunmarshalParamsverify

Constructor Detail

SHA384back to summary
pack-priv SHA384(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
SHA384back to summary
pack-priv SHA384(Element dmElem) throws MarshalException

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Doc from javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

Annotations
@Override
getDigestLengthback to summary
pack-priv int getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Doc from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

Annotations
@Override
getJCAAlgorithmback to summary
pack-priv String getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Annotations
@Override
org.jcp.xml.dsig.internal.dom back to summary

pack-priv final Class DOMHMACSignatureMethod.SHA512

extends DOMHMACSignatureMethod
Class Inheritance

Field Summary

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
HMAC_RIPEMD160HMAC_SHA224HMAC_SHA256HMAC_SHA384HMAC_SHA512

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
SHA512(Element dmElem)

Method Summary

Modifier and TypeMethod and Description
public String
getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

pack-priv int
getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

pack-priv String
getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Inherited from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod:
checkParamsgetAlgorithmTypegetParameterSpecmarshalParamsparamsEqualsignunmarshalParamsverify

Constructor Detail

SHA512back to summary
pack-priv SHA512(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
SHA512back to summary
pack-priv SHA512(Element dmElem) throws MarshalException

Method Detail

getAlgorithmback to summary
public String getAlgorithm()

Implements javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Doc from javax.xml.crypto.AlgorithmMethod.getAlgorithm.

Returns the algorithm URI of this AlgorithmMethod.

Annotations
@Override
getDigestLengthback to summary
pack-priv int getDigestLength()

Implements abstract org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Doc from org.jcp.xml.dsig.internal.dom.DOMHMACSignatureMethod.getDigestLength.

Returns the output length of the hash/digest.

Annotations
@Override
getJCAAlgorithmback to summary
pack-priv String getJCAAlgorithm()

Implements abstract org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Doc from org.jcp.xml.dsig.internal.dom.AbstractDOMSignatureMethod.getJCAAlgorithm.

Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.

Annotations
@Override