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 interfaceAuthenticationFailedRejection.CauseSignals the cause of the failed authentication.static classAuthenticationFailedRejection.CredentialsMissing$Signals the cause of the rejecting was that the user could not be authenticated, because theWWW-Authenticateheader was not supplied.static classAuthenticationFailedRejection.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.Causecause()HttpChallengechallenge()
-
-
-
Constructor Detail
-
AuthenticationFailedRejection
public AuthenticationFailedRejection(AuthenticationFailedRejection.Cause cause, HttpChallenge challenge)
-
-
Method Detail
-
cause
public AuthenticationFailedRejection.Cause cause()
- Specified by:
causein interfaceAuthenticationFailedRejection
-
challenge
public HttpChallenge challenge()
- Specified by:
challengein interfaceAuthenticationFailedRejection
-
-