| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | checkParams(SignatureMethodParameterSpec
the algorithm-specific params (may be params)null)Checks if the specified parameters are valid for this algorithm. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| pack-priv abstract AbstractDOMSignatureMethod. | |
| pack-priv abstract String | |
| public int | |
| public void | marshal(Node parent, String dsPrefix, DOMCryptoContext context)
Implements abstract org. This method invokes the |
| pack-priv void | marshalParams(Element
the parent element to append the parameters to parent, String the algorithm parameters prefix to use paramsPrefix)Marshals the algorithm-specific parameters to an Element and appends it to the specified parent element. |
| pack-priv boolean | |
| pack-priv abstract byte[] | Returns: the signaturethe signing key key, SignedInfo the SignedInfo si, XMLSignContext the XMLSignContext context)Signs the bytes with the specified key, using the underlying Signature or Mac algorithm. |
| pack-priv SignatureMethodParameterSpec | Returns: the algorithm-specificSignatureMethodParameterSpecthe paramsElem)Element holding the input paramsUnmarshals |
| pack-priv abstract boolean | Returns: true if the signature verified successfully,
false if notthe verification key key, SignedInfo the SignedInfo si, byte[] the signature bytes to be verified sig, XMLValidateContext the XMLValidateContext context)Verifies the passed-in signature with the specified key, using the underlying Signature or Mac algorithm. |
| AbstractDOMSignatureMethod | back to summary |
|---|---|
| pack-priv AbstractDOMSignatureMethod() | |
| checkParams | back to summary |
|---|---|
| pack-priv void checkParams(SignatureMethodParameterSpec params) throws InvalidAlgorithmParameterException 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.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAlgorithmType | back to summary |
|---|---|
| pack-priv abstract AbstractDOMSignatureMethod. Returns the type of signature algorithm. | |
| getJCAAlgorithm | back to summary |
|---|---|
| pack-priv abstract String getJCAAlgorithm() Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| marshal | back to summary |
|---|---|
| public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException Implements abstract org. This method invokes the
| |
| marshalParams | back to summary |
|---|---|
| pack-priv void marshalParams(Element parent, String paramsPrefix) throws MarshalException 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) Returns true if parameters are equal; false otherwise. Subclasses should override this method to compare algorithm-specific parameters. | |
| sign | back to summary |
|---|---|
| pack-priv abstract byte[] sign(Key key, SignedInfo si, XMLSignContext context) throws InvalidKeyException, XMLSignatureException 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 Unmarshals
| |
| verify | back to summary |
|---|---|
| pack-priv abstract boolean verify(Key key, SignedInfo si, byte[] sig, XMLValidateContext context) throws InvalidKeyException, SignatureException, XMLSignatureException Verifies the passed-in signature with the specified key, using the underlying Signature or Mac algorithm.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final AbstractDOMSignatureMethod. | |
| public static final AbstractDOMSignatureMethod. | |
| public static final AbstractDOMSignatureMethod. | |
| public static final AbstractDOMSignatureMethod. | |
| public static final AbstractDOMSignatureMethod. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractDOMSignatureMethod. | |
| public static AbstractDOMSignatureMethod. |
| DSA | back to summary |
|---|---|
| public static final AbstractDOMSignatureMethod. | |
| ECDSA | back to summary |
|---|---|
| public static final AbstractDOMSignatureMethod. | |
| EDDSA | back to summary |
|---|---|
| public static final AbstractDOMSignatureMethod. | |
| HMAC | back to summary |
|---|---|
| public static final AbstractDOMSignatureMethod. | |
| RSA | back to summary |
|---|---|
| public static final AbstractDOMSignatureMethod. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static AbstractDOMSignatureMethod. | |
| values | back to summary |
|---|---|
| public static AbstractDOMSignatureMethod. | |