Packages

final class Authorizer extends AnyRef

A simple helper that allows services to use authorization claims that have been stored by AuthorizationInterceptor.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Authorizer
  2. AnyRef
  3. 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, akkaScheduler: Scheduler)(implicit loggingContext: LoggingContext)

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() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  15. def requireActAndReadClaimsForParties[Req, Res](actAs: Set[String], readAs: Set[String], applicationIdL: Lens[Req, String], call: (Req) => Future[Res]): (Req) => Future[Res]
  16. def requireAdminClaims[Req, Res](call: (Req) => Future[Res]): (Req) => Future[Res]
  17. def requirePublicClaims[Req, Res](call: (Req) => Future[Res]): (Req) => Future[Res]
  18. def requirePublicClaimsOnStream[Req, Res](call: (Req, StreamObserver[Res]) => Unit): (Req, StreamObserver[Res]) => Unit
  19. 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.

  20. 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.

  21. def requireReadClaimsForAllPartiesOnStreamWithApplicationId[Req, Res](parties: Iterable[String], applicationIdL: Lens[Req, String], call: (Req, StreamObserver[Res]) => Unit): (Req, StreamObserver[Res]) => Unit
  22. def requireReadClaimsForTransactionFilterOnStream[Req, Res](filter: Option[TransactionFilter], 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

  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  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])

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped