public class TestUser extends Object implements org.springframework.security.core.Authentication
Principal
and Authentication
.Modifier and Type | Field and Description |
---|---|
private boolean |
authenticated |
static String |
DEFAULT_NAME
The
name of DEFAULT_USER . |
static TestUser |
DEFAULT_USER
The default instance of
TestUser with DEFAULT_NAME . |
private String |
name |
private static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getName() |
Object |
getPrincipal() |
int |
hashCode() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
String |
toString() |
private static final long serialVersionUID
public static final String DEFAULT_NAME
name
of DEFAULT_USER
.public static final TestUser DEFAULT_USER
TestUser
with DEFAULT_NAME
.private final String name
private boolean authenticated
public int hashCode()
public boolean equals(Object obj)
public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.Authentication
public Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public Object getDetails()
getDetails
in interface org.springframework.security.core.Authentication
public Object getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
IllegalArgumentException
Copyright © 2001–2016 mmm-Team. All rights reserved.