|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.security.TestAuthenticationManager
public class TestAuthenticationManager
Test implementation giving us control over the authentication results.
| Field Summary | |
|---|---|
static org.springframework.security.Authentication |
BAD_CREDENTIALS
Token to use to force a failed (bad credentials) authentication. |
static org.springframework.security.Authentication |
LOCKED
Token to use to force a LOCKED authentication exception. |
static String |
ROLE_EXPECTED
Test role |
static org.springframework.security.Authentication |
VALID_USER1
Token to use to force a successful authentication. |
static org.springframework.security.Authentication |
VALID_USER2
Token to use to force a successful authentication. |
| Constructor Summary | |
|---|---|
TestAuthenticationManager()
|
|
| Method Summary | |
|---|---|
org.springframework.security.Authentication |
authenticate(org.springframework.security.Authentication authentication)
Authenticate a token |
static org.springframework.security.Authentication |
makeAuthentication(String user,
String password,
String role)
Construct a token with the given id, password, and role |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ROLE_EXPECTED
public static final org.springframework.security.Authentication VALID_USER1
public static final org.springframework.security.Authentication VALID_USER2
public static final org.springframework.security.Authentication BAD_CREDENTIALS
public static final org.springframework.security.Authentication LOCKED
| Constructor Detail |
|---|
public TestAuthenticationManager()
| Method Detail |
|---|
public static org.springframework.security.Authentication makeAuthentication(String user,
String password,
String role)
public org.springframework.security.Authentication authenticate(org.springframework.security.Authentication authentication)
throws org.springframework.security.AuthenticationException
authenticate in interface org.springframework.security.AuthenticationManagerorg.springframework.security.AuthenticationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||