AlgorithmMethod (Java Platform SE 8 )
Keywords: javax.xml.crypto.AlgorithmMethod interface
Date: 2026-04-17

compact3
javax.xml.crypto

## Interface AlgorithmMethod

- All Known Subinterfaces:
    CanonicalizationMethod, DigestMethod, SignatureMethod, Transform
  All Known Implementing Classes:
    TransformService

      public interface AlgorithmMethod

  An abstract representation of an algorithm defined in the XML Security specifications. Subclasses represent specific types of XML security algorithms, such as a `Transform`.
  Since:
    1.6

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getAlgorithm()` Returns the algorithm URI of this `AlgorithmMethod`.
    `AlgorithmParameterSpec` | `getParameterSpec()` Returns the algorithm parameters of this `AlgorithmMethod`.

- - ### Method Detail

    - #### getAlgorithm

          String getAlgorithm()

      Returns the algorithm URI of this `AlgorithmMethod`.
      Returns:
        the algorithm URI of this `AlgorithmMethod`

    - #### getParameterSpec

          AlgorithmParameterSpec getParameterSpec()

      Returns the algorithm parameters of this `AlgorithmMethod`.
      Returns:
        the algorithm parameters of this `AlgorithmMethod`. Returns `null` if this `AlgorithmMethod` does not require parameters and they are not specified.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.