| Modifier and Type | Class 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 |
| Modifier and Type | Field 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 |
| Access | Constructor and Description |
|---|---|
| pack-priv | DOMHMACSignatureMethod(AlgorithmParameterSpec
algorithm-specific parameters (may be params)null)Creates a |
| pack-priv | DOMHMACSignatureMethod(Element
a SignatureMethod element smElem)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | checkParams(SignatureMethodParameterSpec params)
Overrides org. Checks if the specified parameters are valid for this algorithm. |
| pack-priv AbstractDOMSignatureMethod. | getAlgorithmType()
Implements abstract org. Returns the type of signature algorithm. |
| pack-priv abstract int | |
| public final AlgorithmParameterSpec | getParameterSpec()
Implements javax. Returns the algorithm-specific input parameters of this
|
| pack-priv void | marshalParams(Element parent, String prefix)
Overrides org. Marshals the algorithm-specific parameters to an Element and appends it to the specified parent element. |
| pack-priv boolean | paramsEqual(AlgorithmParameterSpec spec)
Overrides org. Returns true if parameters are equal; false otherwise. |
| pack-priv byte[] | sign(Key key, SignedInfo si, XMLSignContext context)
Implements abstract org. Signs the bytes with the specified key, using the underlying Signature or Mac algorithm. |
| pack-priv SignatureMethodParameterSpec | unmarshalParams(Element paramsElem)
Overrides org. Unmarshals |
| pack-priv boolean | verify(Key key, SignedInfo si, byte[] sig, XMLValidateContext context)
Implements abstract org. Verifies the passed-in signature with the specified key, using the underlying Signature or Mac algorithm. |
| DOM_SIGNATURE_PROVIDER | back to summary |
|---|---|
| private static final String DOM_SIGNATURE_PROVIDER | |
| hmac | back to summary |
|---|---|
| private Mac hmac | |
| HMAC_RIPEMD160 | back to summary |
|---|---|
| pack-priv static final String HMAC_RIPEMD160 | |
| HMAC_SHA224 | back to summary |
|---|---|
| pack-priv static final String HMAC_SHA224 | |
| HMAC_SHA256 | back to summary |
|---|---|
| pack-priv static final String HMAC_SHA256 | |
| HMAC_SHA384 | back to summary |
|---|---|
| pack-priv static final String HMAC_SHA384 | |
| HMAC_SHA512 | back to summary |
|---|---|
| pack-priv static final String HMAC_SHA512 | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| outputLength | back to summary |
|---|---|
| private int outputLength | |
| outputLengthSet | back to summary |
|---|---|
| private boolean outputLengthSet | |
| params | back to summary |
|---|---|
| private SignatureMethodParameterSpec params | |
| DOMHMACSignatureMethod | back to summary |
|---|---|
| pack-priv DOMHMACSignatureMethod(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException Creates a
| |
| DOMHMACSignatureMethod | back to summary |
|---|---|
| pack-priv DOMHMACSignatureMethod(Element smElem) throws MarshalException Creates a
| |
| checkParams | back to summary |
|---|---|
| pack-priv void checkParams(SignatureMethodParameterSpec params) throws InvalidAlgorithmParameterException Overrides org. Doc from org. 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.
| |
| getAlgorithmType | back to summary |
|---|---|
| pack-priv AbstractDOMSignatureMethod. Implements abstract org. Doc from org. Returns the type of signature algorithm.
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv abstract int getDigestLength() Returns the output length of the hash/digest. | |
| getParameterSpec | back to summary |
|---|---|
| public final AlgorithmParameterSpec getParameterSpec() Implements javax. Doc from javax. Returns the algorithm-specific input parameters of this
The returned parameters can be typecast to a
| |
| marshalParams | back to summary |
|---|---|
| pack-priv void marshalParams(Element parent, String prefix) throws MarshalException Overrides org. Doc from org. 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.
| |
| paramsEqual | back to summary |
|---|---|
| pack-priv boolean paramsEqual(AlgorithmParameterSpec spec) Overrides org. Doc from org. Returns true if parameters are equal; false otherwise. Subclasses should override this method to compare algorithm-specific parameters.
| |
| sign | back to summary |
|---|---|
| pack-priv byte[] sign(Key key, SignedInfo si, XMLSignContext context) throws InvalidKeyException, XMLSignatureException Implements abstract org. Doc from org. Signs the bytes with the specified key, using the underlying Signature or Mac algorithm.
| |
| unmarshalParams | back to summary |
|---|---|
| pack-priv SignatureMethodParameterSpec unmarshalParams(Element paramsElem) throws MarshalException Overrides org. Doc from org. Unmarshals
| |
| verify | back to summary |
|---|---|
| pack-priv boolean verify(Key key, SignedInfo si, byte[] sig, XMLValidateContext context) throws InvalidKeyException, SignatureException, XMLSignatureException Implements abstract org. Doc from org. Verifies the passed-in signature with the specified key, using the underlying Signature or Mac algorithm.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements javax. Returns the algorithm URI of this |
| pack-priv int | getDigestLength()
Implements abstract org. Returns the output length of the hash/digest. |
| pack-priv String | getJCAAlgorithm()
Implements abstract org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. |
| RIPEMD160 | back to summary |
|---|---|
| pack-priv RIPEMD160(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| RIPEMD160 | back to summary |
|---|---|
| pack-priv RIPEMD160(Element dmElem) throws MarshalException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements javax. Doc from javax. Returns the algorithm URI of this
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv int getDigestLength() Implements abstract org. Doc from org. Returns the output length of the hash/digest.
| |
| getJCAAlgorithm | back to summary |
|---|---|
| pack-priv String getJCAAlgorithm() Implements abstract org. Doc from org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements javax. Returns the algorithm URI of this |
| pack-priv int | getDigestLength()
Implements abstract org. Returns the output length of the hash/digest. |
| pack-priv String | getJCAAlgorithm()
Implements abstract org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. |
| SHA1 | back to summary |
|---|---|
| pack-priv SHA1(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| SHA1 | back to summary |
|---|---|
| pack-priv SHA1(Element dmElem) throws MarshalException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements javax. Doc from javax. Returns the algorithm URI of this
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv int getDigestLength() Implements abstract org. Doc from org. Returns the output length of the hash/digest.
| |
| getJCAAlgorithm | back to summary |
|---|---|
| pack-priv String getJCAAlgorithm() Implements abstract org. Doc from org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements javax. Returns the algorithm URI of this |
| pack-priv int | getDigestLength()
Implements abstract org. Returns the output length of the hash/digest. |
| pack-priv String | getJCAAlgorithm()
Implements abstract org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. |
| SHA224 | back to summary |
|---|---|
| pack-priv SHA224(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| SHA224 | back to summary |
|---|---|
| pack-priv SHA224(Element dmElem) throws MarshalException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements javax. Doc from javax. Returns the algorithm URI of this
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv int getDigestLength() Implements abstract org. Doc from org. Returns the output length of the hash/digest.
| |
| getJCAAlgorithm | back to summary |
|---|---|
| pack-priv String getJCAAlgorithm() Implements abstract org. Doc from org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements javax. Returns the algorithm URI of this |
| pack-priv int | getDigestLength()
Implements abstract org. Returns the output length of the hash/digest. |
| pack-priv String | getJCAAlgorithm()
Implements abstract org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. |
| SHA256 | back to summary |
|---|---|
| pack-priv SHA256(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| SHA256 | back to summary |
|---|---|
| pack-priv SHA256(Element dmElem) throws MarshalException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements javax. Doc from javax. Returns the algorithm URI of this
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv int getDigestLength() Implements abstract org. Doc from org. Returns the output length of the hash/digest.
| |
| getJCAAlgorithm | back to summary |
|---|---|
| pack-priv String getJCAAlgorithm() Implements abstract org. Doc from org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements javax. Returns the algorithm URI of this |
| pack-priv int | getDigestLength()
Implements abstract org. Returns the output length of the hash/digest. |
| pack-priv String | getJCAAlgorithm()
Implements abstract org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. |
| SHA384 | back to summary |
|---|---|
| pack-priv SHA384(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| SHA384 | back to summary |
|---|---|
| pack-priv SHA384(Element dmElem) throws MarshalException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements javax. Doc from javax. Returns the algorithm URI of this
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv int getDigestLength() Implements abstract org. Doc from org. Returns the output length of the hash/digest.
| |
| getJCAAlgorithm | back to summary |
|---|---|
| pack-priv String getJCAAlgorithm() Implements abstract org. Doc from org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAlgorithm()
Implements javax. Returns the algorithm URI of this |
| pack-priv int | getDigestLength()
Implements abstract org. Returns the output length of the hash/digest. |
| pack-priv String | getJCAAlgorithm()
Implements abstract org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. |
| SHA512 | back to summary |
|---|---|
| pack-priv SHA512(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| SHA512 | back to summary |
|---|---|
| pack-priv SHA512(Element dmElem) throws MarshalException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements javax. Doc from javax. Returns the algorithm URI of this
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv int getDigestLength() Implements abstract org. Doc from org. Returns the output length of the hash/digest.
| |
| getJCAAlgorithm | back to summary |
|---|---|
| pack-priv String getJCAAlgorithm() Implements abstract org. Doc from org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name.
| |