public class

RememberMeAuthenticationToken

extends AbstractAuthenticationToken
java.lang.Object
   ↳ org.springframework.security.authentication.AbstractAuthenticationToken
     ↳ org.springframework.security.authentication.RememberMeAuthenticationToken

Class Overview

Represents a remembered Authentication.

A remembered Authentication must provide a fully valid Authentication, including the GrantedAuthoritys that apply.

Summary

Public Constructors
RememberMeAuthenticationToken(String key, Object principal, Collection<? extends GrantedAuthority> authorities)
Constructor.
Public Methods
boolean equals(Object obj)
Object getCredentials()
Always returns an empty String
int getKeyHash()
Object getPrincipal()
[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 RememberMeAuthenticationToken (String key, Object principal, Collection<? extends GrantedAuthority> authorities)

Constructor.

Parameters
key to identify if this object made by an authorised client
principal the principal (typically a UserDetails)
authorities the authorities granted to the principal
Throws
IllegalArgumentException if a null was passed

Public Methods

public boolean equals (Object obj)

public Object getCredentials ()

Always returns an empty String

Returns
  • an empty String

public int getKeyHash ()

public Object getPrincipal ()