object Authenticator extends StrictLogging with AnyOf with FirstOf with And
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Authenticator
- And
- FirstOf
- AnyOf
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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
-
def
and[A, A1, A2](authenticator1: Authenticator[A1], authenticator2: Authenticator[A2])(partialCombine: PartialFunction[(Option[A1], Option[A2]), A]): Authenticator[A]
- Definition Classes
- And
-
def
anyOf[A, A1, A2, A3](authenticator1: Authenticator[A1], authenticator2: Authenticator[A2], authenticator3: Authenticator[A3])(implicit transformer1: AuthenticationTransformer[A1, A], transformer2: AuthenticationTransformer[A2, A], transformer3: AuthenticationTransformer[A3, A]): Authenticator[A]
- Definition Classes
- AnyOf
-
def
anyOf[A, A1, A2](authenticator1: Authenticator[A1], authenticator2: Authenticator[A2])(implicit transformer1: AuthenticationTransformer[A1, A], transformer2: AuthenticationTransformer[A2, A]): Authenticator[A]
- Definition Classes
- AnyOf
-
def
anyOf[A](authenticators: Set[Authenticator[A]]): Authenticator[A]
Combines an UNORDERED collection of Authenticators into an authenticator that:
Combines an UNORDERED collection of Authenticators into an authenticator that:
- If any authentication succeeds, return an arbitrary successful authenticator's response. 2. If any returns an error, return an arbitrary authenticator's error. 3. If all skip, return a skip response.
Note: the weakness of ordering guarantees here allows optimization like not waiting for all authenticators to respond if an early one is successful.
TODO(josh): Should existence of even a single error trigger failure? TODO(josh): Write unit tests.
- Definition Classes
- AnyOf
- def apply[P, A](parser: HeaderAuthenticationParser[P], decorator: Decorator[P, A]): Authenticator[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def errorRecovery[A]: PartialFunction[Throwable, Option[Either[NaptimeActionException, A]]]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
firstOf[A, A1, A2, A3, A4, A5](authenticator1: Authenticator[A1], authenticator2: Authenticator[A2], authenticator3: Authenticator[A3], authenticator4: Authenticator[A4], authenticator5: Authenticator[A5])(implicit transformer1: AuthenticationTransformer[A1, A], transformer2: AuthenticationTransformer[A2, A], transformer3: AuthenticationTransformer[A3, A], transformer4: AuthenticationTransformer[A4, A], transformer5: AuthenticationTransformer[A5, A]): Authenticator[A]
- Definition Classes
- FirstOf
-
def
firstOf[A, A1, A2, A3, A4](authenticator1: Authenticator[A1], authenticator2: Authenticator[A2], authenticator3: Authenticator[A3], authenticator4: Authenticator[A4])(implicit transformer1: AuthenticationTransformer[A1, A], transformer2: AuthenticationTransformer[A2, A], transformer3: AuthenticationTransformer[A3, A], transformer4: AuthenticationTransformer[A4, A]): Authenticator[A]
- Definition Classes
- FirstOf
-
def
firstOf[A, A1, A2, A3](authenticator1: Authenticator[A1], authenticator2: Authenticator[A2], authenticator3: Authenticator[A3])(implicit transformer1: AuthenticationTransformer[A1, A], transformer2: AuthenticationTransformer[A2, A], transformer3: AuthenticationTransformer[A3, A]): Authenticator[A]
- Definition Classes
- FirstOf
-
def
firstOf[A, A1, A2](authenticator1: Authenticator[A1], authenticator2: Authenticator[A2])(implicit transformer1: AuthenticationTransformer[A1, A], transformer2: AuthenticationTransformer[A2, A]): Authenticator[A]
- Definition Classes
- FirstOf
-
def
firstOf[A](authenticators: Seq[Authenticator[A]]): Authenticator[A]
Combines an ORDERED collection of Authenticators into an authenticator that:
Combines an ORDERED collection of Authenticators into an authenticator that:
- If any authentication succeeds, returns the response from the first in the list that succeeded. 2. If any returns an error, return the response from the first in the list that failed. 3. If all skip, return a skip response.
TODO(josh): Write unit tests.
- Definition Classes
- FirstOf
-
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
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
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()
-
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
- @native() @throws( ... )