flex.messaging
Class FlexRemoteCredentials

java.lang.Object
  extended by flex.messaging.FlexRemoteCredentials

public class FlexRemoteCredentials
extends Object

A wrapper object used for holding onto remote credentials. When you are using the proxy service, the remote credentials are used for authenticating against the proxy server. The remote credentials are distinct from the local credentials used to authenticate against the local server. You use this class along with the FlexSession methods getRemoteCredentials and putRemoteCredentials to associate the remote credentials with a specific destination.


Constructor Summary
FlexRemoteCredentials(String service, String destination, String username, Object credentials)
          Normally you do not have to create the FlexRemoteCredentials as they are created automatically when the client specifies them via the setRemoteCredentials method in ActionScript.
 
Method Summary
 Object getCredentials()
          Returns the credentials themselves (usually a password)
 String getDestination()
          Returns the destination for the service.
 String getService()
          Returns the id of the service these credentials are registered for.
 String getUsername()
          Returns the user name from the remote credentials
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexRemoteCredentials

public FlexRemoteCredentials(String service,
                             String destination,
                             String username,
                             Object credentials)
Normally you do not have to create the FlexRemoteCredentials as they are created automatically when the client specifies them via the setRemoteCredentials method in ActionScript. You'd use this if you wanted to set your remote credentials on the server and not have them specified on the client.

Method Detail

getUsername

public String getUsername()
Returns the user name from the remote credentials


getCredentials

public Object getCredentials()
Returns the credentials themselves (usually a password)


getService

public String getService()
Returns the id of the service these credentials are registered for.


getDestination

public String getDestination()
Returns the destination for the service.



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/FlexRemoteCredentials.html