final class OkpJwk extends Jwk

An OKP JWK (RFC 8037) holding an Ed25519 or Ed448 public key.

Building the publicKey of such a key requires a JDK that provides the EdDSA KeyFactory, which is the case from JDK 15 on. See OkpCurve.

Exceptions thrown

JwtValidationException if x does not decode to curve.keyLength bytes

java.lang.IllegalArgumentException if x is not valid base64url

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OkpJwk
  2. Jwk
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val algorithm: Option[String]

    The raw alg member, which may name a non-signature algorithm.

    The raw alg member, which may name a non-signature algorithm.

    Definition Classes
    OkpJwk → Jwk
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. val curve: OkpCurve
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(other: Any): Boolean
    Definition Classes
    OkpJwk → AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    OkpJwk → AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def keyBytes: Array[Byte]

    The raw public key.

    The raw public key. A fresh array is returned on every call.

  14. val keyId: Option[String]

    The kid member.

    The kid member.

    Definition Classes
    OkpJwk → Jwk
  15. val keyOperations: Option[Set[String]]

    The key_ops member, None when absent.

    The key_ops member, None when absent.

    Definition Classes
    OkpJwk → Jwk
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. lazy val publicKey: PublicKey

    Definition Classes
    OkpJwk → Jwk
    Exceptions thrown

    java.security.NoSuchAlgorithmException if the JDK has no key factory for this type of key

    java.security.spec.InvalidKeySpecException if the JDK refuses the parameters as a key

  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def thumbprint: JwkThumbprint

    The SHA-256 thumbprint of this key, see JwkThumbprint.

    The SHA-256 thumbprint of this key, see JwkThumbprint.

    Definition Classes
    Jwk
  22. def toJson: String
    Definition Classes
    Jwk
  23. def toString(): String
    Definition Classes
    OkpJwk → AnyRef → Any
  24. val use: Option[JwkUse]

    The use member.

    The use member.

    Definition Classes
    OkpJwk → Jwk
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. def withAlgorithm(algorithm: Option[String]): OkpJwk
  29. def withKeyId(keyId: Option[String]): OkpJwk
  30. def withKeyOperations(keyOperations: Option[Set[String]]): OkpJwk
  31. def withUse(use: Option[JwkUse]): OkpJwk
  32. val x: String

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Jwk

Inherited from AnyRef

Inherited from Any

Ungrouped