Package akka.http.scaladsl.server
Class AuthenticationFailedRejection
- java.lang.Object
-
- akka.http.scaladsl.server.AuthenticationFailedRejection
-
- All Implemented Interfaces:
AuthenticationFailedRejection
,Rejection
,Rejection
,java.io.Serializable
,scala.Equals
,scala.Product
public final class AuthenticationFailedRejection extends java.lang.Object implements AuthenticationFailedRejection, Rejection, scala.Product, java.io.Serializable
Rejection created by the variousSecurityDirectives
. Signals that the request was rejected because the user could not be authenticated. The reason for the rejection is specified in the cause.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AuthenticationFailedRejection.Cause
Signals the cause of the failed authentication.static class
AuthenticationFailedRejection.CredentialsMissing$
Signals the cause of the rejecting was that the user could not be authenticated, because theWWW-Authenticate
header was not supplied.static class
AuthenticationFailedRejection.CredentialsRejected$
Signals the cause of the rejecting was that the user could not be authenticated, because the supplied credentials are invalid.-
Nested classes/interfaces inherited from interface akka.http.javadsl.server.AuthenticationFailedRejection
AuthenticationFailedRejection.CredentialsMissing, AuthenticationFailedRejection.CredentialsRejected
-
-
Constructor Summary
Constructors Constructor Description AuthenticationFailedRejection(AuthenticationFailedRejection.Cause cause, HttpChallenge challenge)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationFailedRejection.Cause
cause()
HttpChallenge
challenge()
-
-
-
Constructor Detail
-
AuthenticationFailedRejection
public AuthenticationFailedRejection(AuthenticationFailedRejection.Cause cause, HttpChallenge challenge)
-
-
Method Detail
-
cause
public AuthenticationFailedRejection.Cause cause()
- Specified by:
cause
in interfaceAuthenticationFailedRejection
-
challenge
public HttpChallenge challenge()
- Specified by:
challenge
in interfaceAuthenticationFailedRejection
-
-