public class

PreAuthenticatedAuthenticationToken

extends AbstractAuthenticationToken
java.lang.Object
   ↳ org.springframework.security.authentication.AbstractAuthenticationToken
     ↳ org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken

Class Overview

Authentication implementation for pre-authenticated authentication.

Summary

Public Constructors
PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials)
Constructor used for an authentication request.
PreAuthenticatedAuthenticationToken(Object aPrincipal, Object aCredentials, Collection<? extends GrantedAuthority> anAuthorities)
Constructor used for an authentication response.
Public Methods
Object getCredentials()
Get the credentials
Object getPrincipal()
Get the principal
[Expand]
Inherited Methods
From class org.springframework.security.authentication.AbstractAuthenticationToken
From class java.lang.Object
From interface java.security.Principal
From interface org.springframework.security.core.Authentication
From interface org.springframework.security.core.CredentialsContainer

Public Constructors

public PreAuthenticatedAuthenticationToken (Object aPrincipal, Object aCredentials)

Constructor used for an authentication request. The isAuthenticated() will return false.

Parameters
aPrincipal The pre-authenticated principal
aCredentials The pre-authenticated credentials

public PreAuthenticatedAuthenticationToken (Object aPrincipal, Object aCredentials, Collection<? extends GrantedAuthority> anAuthorities)

Constructor used for an authentication response. The isAuthenticated() will return true.

Parameters
aPrincipal The authenticated principal
anAuthorities The granted authorities

Public Methods

public Object getCredentials ()

Get the credentials

public Object getPrincipal ()

Get the principal