final class Authorizer extends AnyRef
A simple helper that allows services to use authorization claims that have been stored by AuthorizationInterceptor.
- Alphabetic
- By Inheritance
- Authorizer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Authorizer(now: () ⇒ Instant, ledgerId: String, participantId: String)
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def requireActAndReadClaimsForParties[Req, Res](actAs: Set[String], readAs: Set[String], applicationId: Option[String], call: (Req) ⇒ Future[Res]): (Req) ⇒ Future[Res]
-
def
requireActClaimsForParty[Req, Res](party: Option[String], applicationId: Option[String], call: (Req) ⇒ Future[Res]): (Req) ⇒ Future[Res]
Checks whether the current Claims authorize to act as the given party, if any.
Checks whether the current Claims authorize to act as the given party, if any. Note: A missing party or applicationId does NOT result in an authorization error.
- def requireAdminClaims[Req, Res](call: (Req) ⇒ Future[Res]): (Req) ⇒ Future[Res]
- def requirePublicClaims[Req, Res](call: (Req) ⇒ Future[Res]): (Req) ⇒ Future[Res]
- def requirePublicClaimsOnStream[Req, Res](call: (Req, StreamObserver[Res]) ⇒ Unit): (Req, StreamObserver[Res]) ⇒ Unit
-
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.
-
def
requireReadClaimsForAllPartiesOnStream[Req, Res](parties: Iterable[String], applicationId: Option[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.
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()