[[servlet-authentication-authentication]] = Authentication The {security-api-url}org/springframework/security/core/Authentication.html[`Authentication`] serves two main purposes within Spring Security: * An input to <> to provide the credentials a user has provided to authenticate. When used in this scenario, `isAuthenticated()` returns `false`. * Represents the currently authenticated user. The current `Authentication` can be obtained from the <>. The `Authentication` contains: * `principal` - identifies the user. When authenticating with a username/password this is often an instance of <>. * `credentials` - often a password. In many cases this will be cleared after the user is authenticated to ensure it is not leaked. * `authorities` - the <> are high level permissions the user is granted. A few examples are roles or scopes.