Class AuthenticationFailedRejection
java.lang.Object
org.apache.pekko.http.scaladsl.server.AuthenticationFailedRejection
- All Implemented Interfaces:
Serializable,AuthenticationFailedRejection,Rejection,Rejection,scala.Equals,scala.Product
public final class AuthenticationFailedRejection
extends Object
implements AuthenticationFailedRejection, Rejection, scala.Product, Serializable
Rejection created by the various
pekko.http.scaladsl.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.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSignals the cause of the failed authentication.static classSignals the cause of the rejecting was that the user could not be authenticated, because theWWW-Authenticateheader was not supplied.static classSignals 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 org.apache.pekko.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, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods 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:
causein interfaceAuthenticationFailedRejection
-
challenge
- Specified by:
challengein interfaceAuthenticationFailedRejection
-