Interface AuthenticationDirective<T>
public interface AuthenticationDirective<T>
-
Method Summary
Modifier and TypeMethodDescriptionoptional()
Returns a copy of thisAuthenticationDirective
that will provideSome(user)
if credentials were supplied and otherwiseNone
.withAnonymousUser
(T anonymous) Returns a copy of thisAuthenticationDirective
that uses the given object as the anonymous user which will be used if no credentials were supplied in the request.
-
Method Details
-
optional
Returns a copy of thisAuthenticationDirective
that will provideSome(user)
if credentials were supplied and otherwiseNone
.- Returns:
- (undocumented)
-
withAnonymousUser
Returns a copy of thisAuthenticationDirective
that 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)
-