Package akka.http.scaladsl.server
Class AuthenticationFailedRejection
java.lang.Object
akka.http.scaladsl.server.AuthenticationFailedRejection
- All Implemented Interfaces:
AuthenticationFailedRejection
,Rejection
,Rejection
,Serializable
,scala.Equals
,scala.Product
public final class AuthenticationFailedRejection
extends Object
implements AuthenticationFailedRejection, Rejection, scala.Product, Serializable
Rejection created by the various
SecurityDirectives
.
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Signals the cause of the failed authentication.static class
Signals the cause of the rejecting was that the user could not be authenticated, because theWWW-Authenticate
header was not supplied.static class
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
ConstructorsConstructorDescriptionAuthenticationFailedRejection
(AuthenticationFailedRejection.Cause cause, HttpChallenge challenge) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
AuthenticationFailedRejection
public AuthenticationFailedRejection(AuthenticationFailedRejection.Cause cause, HttpChallenge challenge)
-
-
Method Details
-
cause
- Specified by:
cause
in interfaceAuthenticationFailedRejection
-
challenge
- Specified by:
challenge
in interfaceAuthenticationFailedRejection
-