final case class Subject(group: Option[GroupSubject] = None, serviceAccount: Option[ServiceAccountSubject] = None, user: Option[UserSubject] = None) extends Product with Serializable
Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
- Source
- Subject.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Subject
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Subject(group: Option[GroupSubject] = None, serviceAccount: Option[ServiceAccountSubject] = None, user: Option[UserSubject] = None)
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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val group: Option[GroupSubject]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mapGroup(f: (GroupSubject) => GroupSubject): Subject
if group has a value, transforms to the result of function
- def mapServiceAccount(f: (ServiceAccountSubject) => ServiceAccountSubject): Subject
if serviceAccount has a value, transforms to the result of function
- def mapUser(f: (UserSubject) => UserSubject): Subject
if user has a value, transforms to the result of function
- 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 productElementNames: Iterator[String]
- Definition Classes
- Product
- val serviceAccount: Option[ServiceAccountSubject]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val user: Option[UserSubject]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- def withGroup(value: GroupSubject): Subject
Returns a new data with group set to new value
- def withServiceAccount(value: ServiceAccountSubject): Subject
Returns a new data with serviceAccount set to new value
- def withUser(value: UserSubject): Subject
Returns a new data with user set to new value