|
||||||||||
| 전의 Class에 다음의 Class에 | 프레임 있어 프레임 없음 | |||||||||
| Summary : 네스트 | 필드 | constructor | 메소드 | 상세 : 필드 | constructor | 메소드 | |||||||||
Public Interface LoginCommand
이 Interface 실장의 Class명은, 게이트웨이 Configuration 의 security 섹션으로 Configuration 되어 서브 렛 초기화의 반영을 사용해 인스턴스화 됩니다.
| 메소드 Summary | |
|---|---|
Principal |
doAuthentication (String username, Object credentials)
게이트웨이에 의해 불려 가 프로그램에 의한 custom 인증을 실행합니다. |
boolean |
doAuthorization (Principal principal, List roles)
게이트웨이에 의해 불려 가 프로그램에 의한 승인을 실행합니다. |
boolean |
logout (Principal principal)
유저의 세션으로부터의 로그아웃을 시도합니다. |
void |
start (javax.servlet.ServletConfig config)
인증 / 승인 요구전에 로그인 커멘드를 초기화합니다. |
void |
stop ()
로그인 커멘드가 사용하고 있는 리소스를 해방합니다. |
| 메소드의 상세 |
|---|
void start(javax.servlet.ServletConfig config)
void stop()
Principal doAuthentication(String username, Object credentials)
username - 인증되고 있는 원칙credentials - 통상, string 키와 string치를 가지는 MAP (패스워드등을 보관 유지)boolean doAuthorization(Principal principal, List roles)
principal - 승인을 위해 체크되고 있는 원칙roles - 체크 대상의 롤명의 Summary으로, 모든 멤버는 string일 필요가 있다boolean logout(Principal principal)
principal - 로그아웃 하는 원칙
|
||||||||||
| 전의 Class에 다음의 Class에 | 프레임 있어 프레임 없음 | |||||||||
| Summary : 네스트 | 필드 | constructor | 메소드 | 상세 : 필드 | constructor | 메소드 | |||||||||