Package Summary  Overview Summary

class:SignatureMethod [NONE]

All Superinterfaces:
AlgorithmMethod, XMLStructure

public interface SignatureMethod extends XMLStructure, AlgorithmMethod
A representation of the XML SignatureMethod element as defined in the W3C Recommendation for XML-Signature Syntax and Processing . The XML Schema Definition is defined as:
   <element name="SignatureMethod" type="ds:SignatureMethodType"/>
     <complexType name="SignatureMethodType" mixed="true">
       <sequence>
         <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/>
         <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
           <!-- (0,unbounded) elements from (1,1) namespace -->
       </sequence>
       <attribute name="Algorithm" type="anyURI" use="required"/>
     </complexType>
 
A SignatureMethod instance may be created by invoking the newSignatureMethod method of the XMLSignatureFactory class.
Since:
1.6
See Also:

field:DSA_SHA1 [NONE]

  • DSA_SHA1

    static final  String DSA_SHA1
    The DSA-SHA1 (DSS) signature method algorithm URI.
    See Also:
  • field:DSA_SHA256 [NONE]

    DSA_SHA256

    static final  String DSA_SHA256
    The DSA-SHA256 (DSS) signature method algorithm URI.
    Since:
    11
    See Also:

    field:RSA_SHA1 [NONE]

    RSA_SHA1

    static final  String RSA_SHA1
    The RSA-SHA1 (PKCS #1) signature method algorithm URI.
    See Also:

    field:RSA_SHA224 [NONE]

    RSA_SHA224

    static final  String RSA_SHA224
    The RSA-SHA224 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:RSA_SHA256 [NONE]

    RSA_SHA256

    static final  String RSA_SHA256
    The RSA-SHA256 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:RSA_SHA384 [NONE]

    RSA_SHA384

    static final  String RSA_SHA384
    The RSA-SHA384 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:RSA_SHA512 [NONE]

    RSA_SHA512

    static final  String RSA_SHA512
    The RSA-SHA512 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:SHA1_RSA_MGF1 [NONE]

    SHA1_RSA_MGF1

    static final  String SHA1_RSA_MGF1
    The SHA1-RSA-MGF1 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:SHA224_RSA_MGF1 [NONE]

    SHA224_RSA_MGF1

    static final  String SHA224_RSA_MGF1
    The SHA224-RSA-MGF1 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:SHA256_RSA_MGF1 [NONE]

    SHA256_RSA_MGF1

    static final  String SHA256_RSA_MGF1
    The SHA256-RSA-MGF1 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:SHA384_RSA_MGF1 [NONE]

    SHA384_RSA_MGF1

    static final  String SHA384_RSA_MGF1
    The SHA384-RSA-MGF1 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:SHA512_RSA_MGF1 [NONE]

    SHA512_RSA_MGF1

    static final  String SHA512_RSA_MGF1
    The SHA512-RSA-MGF1 (PKCS #1) signature method algorithm URI.
    Since:
    11
    See Also:

    field:ECDSA_SHA1 [NONE]

    ECDSA_SHA1

    static final  String ECDSA_SHA1
    The ECDSA-SHA1 (FIPS 180-4) signature method algorithm URI.
    Since:
    11
    See Also:

    field:ECDSA_SHA224 [NONE]

    ECDSA_SHA224

    static final  String ECDSA_SHA224
    The ECDSA-SHA224 (FIPS 180-4) signature method algorithm URI.
    Since:
    11
    See Also:

    field:ECDSA_SHA256 [NONE]

    ECDSA_SHA256

    static final  String ECDSA_SHA256
    The ECDSA-SHA256 (FIPS 180-4) signature method algorithm URI.
    Since:
    11
    See Also:

    field:ECDSA_SHA384 [NONE]

    ECDSA_SHA384

    static final  String ECDSA_SHA384
    The ECDSA-SHA384 (FIPS 180-4) signature method algorithm URI.
    Since:
    11
    See Also:

    field:ECDSA_SHA512 [NONE]

    ECDSA_SHA512

    static final  String ECDSA_SHA512
    The ECDSA-SHA512 (FIPS 180-4) signature method algorithm URI.
    Since:
    11
    See Also:

    field:HMAC_SHA1 [NONE]

    HMAC_SHA1

    static final  String HMAC_SHA1
    The HMAC-SHA1 MAC signature method algorithm URI
    See Also:

    field:HMAC_SHA224 [NONE]

    HMAC_SHA224

    static final  String HMAC_SHA224
    The HMAC-SHA224 MAC signature method algorithm URI.
    Since:
    11
    See Also:

    field:HMAC_SHA256 [NONE]

    HMAC_SHA256

    static final  String HMAC_SHA256
    The HMAC-SHA256 MAC signature method algorithm URI.
    Since:
    11
    See Also:

    field:HMAC_SHA384 [NONE]

    HMAC_SHA384

    static final  String HMAC_SHA384
    The HMAC-SHA384 MAC signature method algorithm URI.
    Since:
    11
    See Also:

    field:HMAC_SHA512 [NONE]

    HMAC_SHA512

    static final  String HMAC_SHA512
    The HMAC-SHA512 MAC signature method algorithm URI.
    Since:
    11
    See Also:

    field:RSA_PSS [NONE]

    RSA_PSS

    static final  String RSA_PSS
    The RSASSA-PSS signature method algorithm URI.

    Calling XMLSignatureFactory.newSignatureMethod(RSA_PSS, null) returns a SignatureMethod object that uses the default parameter as defined in RFC 6931 Section 2.3.9 , which uses SHA-256 as the DigestMethod, MGF1 with SHA-256 as the MaskGenerationFunction, 32 as SaltLength, and 1 as TrailerField. This default parameter is represented as an RSAPSSParameterSpec type and returned by the getParameterSpec() method of the SignatureMethod object.

    Since:
    17
    See Also:

    method:getParameterSpec() [NONE]

    © 2023 Oracle Corporation and/or its affiliates