Class Jwk

java.lang.Object
ai.vectros.types.Jwk

public final class Jwk extends Object
  • Method Details

    • getKty

      public Optional<String> getKty()
      Returns:
      Key type. Always EC for this P-256 key.
    • getCrv

      public Optional<String> getCrv()
      Returns:
      Curve identifier. Always P-256.
    • getX

      public Optional<String> getX()
      Returns:
      The x coordinate of the EC public key, base64url-encoded (32 bytes, unpadded).
    • getY

      public Optional<String> getY()
      Returns:
      The y coordinate of the EC public key, base64url-encoded (32 bytes, unpadded).
    • getUse

      public Optional<String> getUse()
      Returns:
      Intended use of the key. sig indicates signature verification.
    • getKid

      public Optional<String> getKid()
      Returns:
      Key id that uniquely identifies this key, so clients can cache it and reload when it rotates.
    • getAlg

      public Optional<String> getAlg()
      Returns:
      Signing algorithm. ES256 is ECDSA using P-256 and SHA-256.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Jwk.Builder builder()