Enrolment

uk.gov.hmrc.auth.core.Enrolment
See theEnrolment companion object
case class Enrolment(key: String, identifiers: Seq[EnrolmentIdentifier], state: String, delegatedAuthRule: Option[String]) extends Predicate

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Predicate
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def getIdentifier(name: String): Option[EnrolmentIdentifier]
def isActivated: Boolean
def toJson: JsValue

Convert this predicate to JSON for sending over the wire

Convert this predicate to JSON for sending over the wire

Attributes

Returns

the JSON

def withDelegatedAuthRule(rule: String): Enrolment
def withIdentifier(name: String, value: String): Enrolment

Inherited methods

def and(other: Predicate): Predicate

Join this Predicate with another as a boolean AND

Join this Predicate with another as a boolean AND

Value parameters

other

A Predicate to join with this Predicate

Attributes

Returns

A CompositePredicate containing this Predicate and the supplied one

Inherited from:
Predicate
def or(other: Predicate): Predicate

Join this Predicate with another as a boolean OR

Join this Predicate with another as a boolean OR

Value parameters

other

A Predicate to join with this Predicate

Attributes

Returns

An AlternatePredicate containing this Predicate and the supplied one

Inherited from:
Predicate
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product