| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final RSAPSSParameterSpec | |
| private static final String | |
| private static final String | |
| private static final Logger | |
| private final SignatureMethodParameterSpec | |
| pack-priv static final String | |
| private Signature | |
| private PSSParameterSpec |
| Access | Constructor and Description |
|---|---|
| pack-priv | DOMRSAPSSSignatureMethod(AlgorithmParameterSpec
the algorithm-specific params (may be params)null)Creates a |
| pack-priv | DOMRSAPSSSignatureMethod(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. |
| 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 |
| private static SignatureBaseRSA. | |
| 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. |
| DEFAULT_PSS_SPEC | back to summary |
|---|---|
| private static final RSAPSSParameterSpec DEFAULT_PSS_SPEC | |
| DOM_SIGNATURE_PROVIDER | back to summary |
|---|---|
| private static final String DOM_SIGNATURE_PROVIDER | |
| DOM_SIGNATURE_RANDOM | back to summary |
|---|---|
| private static final String DOM_SIGNATURE_RANDOM | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| params | back to summary |
|---|---|
| private final SignatureMethodParameterSpec params | |
| RSA_PSS | back to summary |
|---|---|
| pack-priv static final String RSA_PSS | |
| signature | back to summary |
|---|---|
| private Signature signature | |
| spec | back to summary |
|---|---|
| private PSSParameterSpec spec | |
| DOMRSAPSSSignatureMethod | back to summary |
|---|---|
| pack-priv DOMRSAPSSSignatureMethod(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException Creates a
| |
| DOMRSAPSSSignatureMethod | back to summary |
|---|---|
| pack-priv DOMRSAPSSSignatureMethod(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.
| |
| 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
| |
| validateDigestAlgorithm | back to summary |
|---|---|
| private static SignatureBaseRSA. | |
| 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 AbstractDOMSignatureMethod. | getAlgorithmType()
Implements abstract org. Returns the type of signature algorithm. |
| pack-priv String | getJCAAlgorithm()
Implements abstract org. Returns the java.security.Signature or javax.crypto.Mac standard algorithm name. |
| RSAPSS | back to summary |
|---|---|
| pack-priv RSAPSS(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException | |
| RSAPSS | back to summary |
|---|---|
| pack-priv RSAPSS(Element dmElem) throws MarshalException | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() Implements javax. Doc from javax. Returns the algorithm URI of this
| |
| getAlgorithmType | back to summary |
|---|---|
| pack-priv AbstractDOMSignatureMethod. Implements abstract org. Doc from org. Returns the type of signature algorithm.
| |
| 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.
| |