flex.messaging.security
Interface LoginCommandExt


public interface LoginCommandExt

Extensions to the LoginCommand interface.


Method Summary
 String getPrincipalNameFromCredentials(String username, Object credentials)
          Classes that implement the flex.messaging.security.LoginCommand interface, should also implement this interface if the name stored in java.security.Principal created as a result of a succesfull authentication differs from the username that is actually passed in to the authentication.
 

Method Detail

getPrincipalNameFromCredentials

String getPrincipalNameFromCredentials(String username,
                                       Object credentials)
Classes that implement the flex.messaging.security.LoginCommand interface, should also implement this interface if the name stored in java.security.Principal created as a result of a succesfull authentication differs from the username that is actually passed in to the authentication. Implementing this interace gives such LoginCommand's a chance to return the resulting username so that it can be compared to the one stored in Principal. Returns the value that would be returned by java.security.Principal.getName() if username/credentials had been authenticated

Parameters:
username - - User whose comparable name will be retrieved
credentials - - Credentials for user whose comparable name will be retrieved
Returns:
- value that would be returned by java.security.Principal.getName() if username/credentials had been authenticated


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/security/LoginCommandExt.html