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
JwtValidationExceptionifxdoes not decode tocurve.keyLengthbytesjava.lang.IllegalArgumentExceptionifxis not valid base64url
- Alphabetic
- By Inheritance
- OkpJwk
- Jwk
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val algorithm: Option[String]
The raw
algmember, which may name a non-signature algorithm. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- val curve: OkpCurve
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- OkpJwk → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- OkpJwk → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def keyBytes: Array[Byte]
The raw public key.
The raw public key. A fresh array is returned on every call.
- val keyId: Option[String]
The
kidmember. - val keyOperations: Option[Set[String]]
The
key_opsmember,Nonewhen absent. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- lazy val publicKey: PublicKey
- Definition Classes
- OkpJwk → Jwk
- Exceptions thrown
java.security.NoSuchAlgorithmExceptionif the JDK has no key factory for this type of keyjava.security.spec.InvalidKeySpecExceptionif the JDK refuses the parameters as a key
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def thumbprint: JwkThumbprint
The SHA-256 thumbprint of this key, see JwkThumbprint.
The SHA-256 thumbprint of this key, see JwkThumbprint.
- Definition Classes
- Jwk
- def toJson: String
- Definition Classes
- Jwk
- def toString(): String
- Definition Classes
- OkpJwk → AnyRef → Any
- val use: Option[JwkUse]
The
usemember. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withAlgorithm(algorithm: Option[String]): OkpJwk
- def withKeyId(keyId: Option[String]): OkpJwk
- def withKeyOperations(keyOperations: Option[Set[String]]): OkpJwk
- def withUse(use: Option[JwkUse]): OkpJwk
- val x: String