Predicate

uk.gov.hmrc.auth.core.authorise.Predicate
trait Predicate

Defines a boolean check against auth properties

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Agent
object Individual
object Organisation
object L200
object L250
object L50
object L500
object L600
object Admin
object Assistant
object User
class Enrolment
class Nino
class Relationship
Show all

Members list

Value members

Abstract methods

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

Concrete 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

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