public class

AuthenticationCredentialsNotFoundException

extends AuthenticationException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.security.core.AuthenticationException
           ↳ org.springframework.security.authentication.AuthenticationCredentialsNotFoundException

Class Overview

Thrown if an authentication request is rejected because there is no Authentication object in the SecurityContext.

Summary

Public Constructors
AuthenticationCredentialsNotFoundException(String msg)
Constructs an AuthenticationCredentialsNotFoundException with the specified message.
AuthenticationCredentialsNotFoundException(String msg, Throwable t)
Constructs an AuthenticationCredentialsNotFoundException with the specified message and root cause.
[Expand]
Inherited Methods
From class org.springframework.security.core.AuthenticationException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public AuthenticationCredentialsNotFoundException (String msg)

Constructs an AuthenticationCredentialsNotFoundException with the specified message.

Parameters
msg the detail message

public AuthenticationCredentialsNotFoundException (String msg, Throwable t)

Constructs an AuthenticationCredentialsNotFoundException with the specified message and root cause.

Parameters
msg the detail message
t root cause