public interface AuthenticationFailedRejection extends Rejection
pekko.http.javadsl.server.directives.SecurityDirectives
.
Signals that the request was rejected because the user could not be authenticated. The reason for the rejection is
specified in the cause.Modifier and Type | Interface and Description |
---|---|
static interface |
AuthenticationFailedRejection.Cause
Signals the cause of the failed authentication.
|
static interface |
AuthenticationFailedRejection.CredentialsMissing
Signals the cause of the rejecting was that the user could not be authenticated, because the
WWW-Authenticate
header was not supplied. |
static interface |
AuthenticationFailedRejection.CredentialsRejected
Signals the cause of the rejecting was that the user could not be authenticated, because the supplied credentials
are invalid.
|
Modifier and Type | Method and Description |
---|---|
AuthenticationFailedRejection.Cause |
cause() |
HttpChallenge |
challenge() |
AuthenticationFailedRejection.Cause cause()
HttpChallenge challenge()