Interface AuthenticationDirective<T>
-
public interface AuthenticationDirective<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Directive<scala.Tuple1<scala.Option<T>>>optional()Returns a copy of thisAuthenticationDirectivethat will provideSome(user)if credentials were supplied and otherwiseNone.Directive<scala.Tuple1<T>>withAnonymousUser(T anonymous)Returns a copy of thisAuthenticationDirectivethat uses the given object as the anonymous user which will be used if no credentials were supplied in the request.
-
-
-
Method Detail
-
optional
Directive<scala.Tuple1<scala.Option<T>>> optional()
Returns a copy of thisAuthenticationDirectivethat will provideSome(user)if credentials were supplied and otherwiseNone.- Returns:
- (undocumented)
-
withAnonymousUser
Directive<scala.Tuple1<T>> withAnonymousUser(T anonymous)
Returns a copy of thisAuthenticationDirectivethat uses the given object as the anonymous user which will be used if no credentials were supplied in the request.- Parameters:
anonymous- (undocumented)- Returns:
- (undocumented)
-
-