InsufficientAuthenticationException class
Access needs a real login, but the caller is anonymous.
The web starter raises it when an anonymous request is denied, so the client is asked to log in (401 or a redirect) instead of getting a 403.
Spring (Java): InsufficientAuthenticationException.
- Inheritance
-
- Object
- AuthenticationException
- InsufficientAuthenticationException
Constructors
- InsufficientAuthenticationException([String message = 'Full authentication is required to access this resource', Object? cause])
-
A missing login;
messagedefaults to'Full authentication is required to access this resource'.
Properties
- authenticationRequest ↔ Authentication?
-
The login request that failed, set by
ProviderManager;nullwhen unknown.getter/setter pairinherited - cause → Object?
-
The lower-level error that led to this one, or
null.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What went wrong, for logs; never sent to the client.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited