Class EccTokenKey


  • public final class EccTokenKey
    extends TokenKey
    Required validation properties for tokens generated with Elliptical Curve algorithm.
    • Constructor Detail

      • EccTokenKey

        public EccTokenKey()
    • Method Detail

      • alg

        public AccessPolicyEccAlgo alg()
        Get the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.
        Returns:
        the alg value.
      • withAlg

        public EccTokenKey withAlg​(AccessPolicyEccAlgo alg)
        Set the alg property: Elliptical curve algorithm to be used: ES256, ES384 or ES512.
        Parameters:
        alg - the alg value to set.
        Returns:
        the EccTokenKey object itself.
      • x

        public String x()
        Get the x property: X coordinate.
        Returns:
        the x value.
      • withX

        public EccTokenKey withX​(String x)
        Set the x property: X coordinate.
        Parameters:
        x - the x value to set.
        Returns:
        the EccTokenKey object itself.
      • y

        public String y()
        Get the y property: Y coordinate.
        Returns:
        the y value.
      • withY

        public EccTokenKey withY​(String y)
        Set the y property: Y coordinate.
        Parameters:
        y - the y value to set.
        Returns:
        the EccTokenKey object itself.
      • withKid

        public EccTokenKey withKid​(String kid)
        Set the kid property: JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
        Overrides:
        withKid in class TokenKey
        Parameters:
        kid - the kid value to set.
        Returns:
        the TokenKey object itself.