Class ECParameterTable


  • public class ECParameterTable
    extends java.lang.Object
    Elliptic curve parameter table.

    Supports the following standard EC JWK curves:

    Version:
    2022-04-22
    Author:
    Vladimir Dzhuvinov, Aleksei Doroganov
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.spec.ECParameterSpec get​(Curve curve)
      Gets the parameter specification for the specified elliptic curve.
      static Curve get​(java.security.spec.ECParameterSpec spec)
      Gets the JWK elliptic curve for the specified parameter specification.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public static java.security.spec.ECParameterSpec get​(Curve curve)
        Gets the parameter specification for the specified elliptic curve.
        Parameters:
        curve - The JWK elliptic curve. May be null.
        Returns:
        The EC parameter spec, null if it cannot be determined.
      • get

        public static Curve get​(java.security.spec.ECParameterSpec spec)
        Gets the JWK elliptic curve for the specified parameter specification.
        Parameters:
        spec - The EC parameter spec. May be null.
        Returns:
        The JWK elliptic curve, null if it cannot be determined.