Enum Class AsymmetricKeyPairAlgorithm

java.lang.Object
java.lang.Enum<AsymmetricKeyPairAlgorithm>
org.mockserver.keys.AsymmetricKeyPairAlgorithm
All Implemented Interfaces:
Serializable, Comparable<AsymmetricKeyPairAlgorithm>, Constable

public enum AsymmetricKeyPairAlgorithm extends Enum<AsymmetricKeyPairAlgorithm>
  • Enum Constant Details

  • Method Details

    • values

      public static AsymmetricKeyPairAlgorithm[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AsymmetricKeyPairAlgorithm valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getAlgorithm

      public String getAlgorithm()
    • getJwtAlgorithm

      public String getJwtAlgorithm()
    • getSigningAlgorithm

      public String getSigningAlgorithm()
    • getECDomainParameters

      public String getECDomainParameters()
    • getKeyLength

      public int getKeyLength()
    • getXmlSignatureMethod

      public String getXmlSignatureMethod()
      The W3C XML Signature SignatureMethod algorithm URI corresponding to this key/hash pair, used when enveloped-signing SAML assertions with the JDK XML Digital Signature API.
    • getXmlDigestMethod

      public String getXmlDigestMethod()
      The W3C XML Signature DigestMethod algorithm URI corresponding to this algorithm's hash.
    • fromJwtAlgorithm

      public static AsymmetricKeyPairAlgorithm fromJwtAlgorithm(String jwtAlgorithm)
      Resolves an algorithm from its JWT-style short name (e.g. RS256, ES384), case-insensitively, returning null when the name is null/blank/unrecognised so callers can fall back to a default.