final class Authorizer extends NamedLogging with TelemetryTracing

A simple helper that allows services to use authorization claims that have been stored by com.digitalasset.canton.ledger.api.auth.interceptor.AuthorizationInterceptor.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Authorizer
  2. TelemetryTracing
  3. NamedLogging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Authorizer(now: () => Instant, ledgerId: String, participantId: String, userManagementStore: UserManagementStore, ec: ExecutionContext, userRightsCheckIntervalInSeconds: Int, pekkoScheduler: Scheduler, jwtTimestampLeeway: Option[JwtTimestampLeeway] = None, tokenExpiryGracePeriodForStreams: Option[Duration] = None, telemetry: Telemetry, loggerFactory: NamedLoggerFactory)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def authenticatedUserId(): Try[Option[String]]
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def identityProviderIdFromClaims: Option[IdentityProviderId]
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  15. val loggerFactory: NamedLoggerFactory
    Definition Classes
    AuthorizerNamedLogging
  16. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def requireActAndReadClaimsForParties[Req, Res](actAs: Set[String], readAs: Set[String], applicationIdL: Lens[Req, String], call: (Req) => Future[Res]): (Req) => Future[Res]
  22. def requireAdminClaims[Req, Res](call: (Req) => Future[Res]): (Req) => Future[Res]
  23. def requireIdpAdminClaims[Req, Res](call: (Req) => Future[Res]): (Req) => Future[Res]
  24. def requireIdpAdminClaimsAndMatchingRequestIdpId[Req, Res](identityProviderIdL: Lens[Req, String], mustBeParticipantAdmin: Boolean, call: (Req) => Future[Res])(req: Req): Future[Res]
  25. def requireIdpAdminClaimsAndMatchingRequestIdpId[Req, Res](identityProviderIdL: Lens[Req, String], call: (Req) => Future[Res]): (Req) => Future[Res]
  26. def requireMatchingRequestIdpId[Req, Res](identityProviderIdL: Lens[Req, String], call: (Req) => Future[Res]): (Req) => Future[Res]
  27. def requirePublicClaims[Req, Res](call: (Req) => Future[Res]): (Req) => Future[Res]
  28. def requirePublicClaimsOnStream[Req, Res](call: (Req, StreamObserver[Res]) => Unit): (Req, StreamObserver[Res]) => Unit
  29. def requireReadClaimsForAllParties[Req, Res](parties: Iterable[String], call: (Req) => Future[Res]): (Req) => Future[Res]

    Wraps a single call to verify whether some Claims authorize to read as all parties of the given set.

    Wraps a single call to verify whether some Claims authorize to read as all parties of the given set. Authorization is always granted for an empty collection of parties.

  30. def requireReadClaimsForAllPartiesOnStream[Req, Res](parties: Iterable[String], call: (Req, StreamObserver[Res]) => Unit): (Req, StreamObserver[Res]) => Unit

    Wraps a streaming call to verify whether some Claims authorize to read as all parties of the given set.

    Wraps a streaming call to verify whether some Claims authorize to read as all parties of the given set. Authorization is always granted for an empty collection of parties.

  31. def requireReadClaimsForAllPartiesOnStreamWithApplicationId[Req, Res](parties: Iterable[String], applicationIdL: Lens[Req, String], call: (Req, StreamObserver[Res]) => Unit): (Req, StreamObserver[Res]) => Unit
  32. def requireReadClaimsForTransactionFilterOnStream[Req, Res](filter: Option[Map[String, Filters]], call: (Req, StreamObserver[Res]) => Unit): (Req, StreamObserver[Res]) => Unit

    Checks whether the current Claims authorize to read data for all parties mentioned in the given transaction filter

  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. val telemetry: Telemetry
    Attributes
    protected
    Definition Classes
    AuthorizerTelemetryTracing
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. implicit def traceContext: TraceContext
    Attributes
    protected
    Definition Classes
    TelemetryTracing
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from TelemetryTracing

Inherited from NamedLogging

Inherited from AnyRef

Inherited from Any

Ungrouped