flex.messaging.security
Interface LoginCommand


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 ()
          로그인 커멘드가 사용하고 있는 리소스를 해방합니다.
 

메소드의 상세

start

void start(javax.servlet.ServletConfig config)
인증 / 승인 요구전에 로그인 커멘드를 초기화합니다.


stop

void stop()
로그인 커멘드가 사용하고 있는 리소스를 해방합니다.


doAuthentication

Principal  doAuthentication(String  username,
Object  credentials)
게이트웨이에 의해 불려 가 프로그램에 의한 custom 인증을 실행합니다.

자격 정보가 Map 로서 건네받기 (위해)때문에, 장래 추가의 프롭퍼티를 건네줄 수가 있게 됩니다. 현시점에서는,"password" 프롭퍼티만이 송신됩니다.

파라미터 :
username - 인증되고 있는 원칙
credentials - 통상, string 키와 string치를 가지는 MAP (패스워드등을 보관 유지)

doAuthorization

boolean doAuthorization(Principal  principal,
List  roles)
게이트웨이에 의해 불려 가 프로그램에 의한 승인을 실행합니다.

통상의 실장에서는, 제공된 롤을 반복해, HttpServletRequest.isUserInRole(String role)에의 호출로 적어도 1 개(살) 이상의 롤이 true 를 돌려준 것을 확인합니다.

파라미터 :
principal - 승인을 위해 체크되고 있는 원칙
roles - 체크 대상의 롤명의 Summary으로, 모든 멤버는 string일 필요가 있다

logout

boolean logout(Principal  principal)
유저의 세션으로부터의 로그아웃을 시도합니다. 메모 : 모든 어플리케이션 서버로 사용할 수 있다고는 할 수 없습니다.

파라미터 :
principal - 로그아웃 하는 원칙


Copyright © 2006 Adobe Systems Inc. All Rights Reserved.