object AuthServiceJWTCodec
Codec for writing and reading AuthServiceJWTPayload to and from JSON.
In general: - All custom claims are placed in a namespace field according to the OpenID Connect standard. - Access tokens use a Daml-specific scope to distinguish them from other access tokens issued by the same issuer for different systems or APIs. - All fields are optional in JSON for forward/backward compatibility reasons, where appropriate. - Extra JSON fields are ignored when reading. - Null values and missing JSON fields map to None or a safe default value (if there is one).
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- AuthServiceJWTCodec
- AnyRef
- Any
- Hide All
- Show All
Visibility
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compactPrint(v: AuthServiceJWTPayload, enforceFormat: Option[StandardJWTTokenFormat] = None): String
Writes the given payload to a compact JSON string
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final val oidcNamespace: String
- def readAudienceBasedToken(value: JsValue): AuthServiceJWTPayload
- def readFromString(value: String): Try[AuthServiceJWTPayload]
- def readScopeBasedToken(value: JsValue): AuthServiceJWTPayload
- final val scopeLedgerApiFull: String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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 writeAudienceBasedPayload: (AuthServiceJWTPayload) => JsValue
- def writePayload: (AuthServiceJWTPayload) => JsValue
- def writeScopeBasedPayload: (AuthServiceJWTPayload) => JsValue
- object AudienceBasedTokenJsonImplicits extends DefaultJsonProtocol
- object JsonImplicits extends DefaultJsonProtocol
- object ScopeBasedTokenJsonImplicits extends DefaultJsonProtocol