com.gridsystems.innergrid.api
Class UsernameTokenCredentials

java.lang.Object
  extended by com.gridsystems.innergrid.api.UsernameTokenCredentials
All Implemented Interfaces:
Credentials

public class UsernameTokenCredentials
extends java.lang.Object
implements Credentials

Implementation of the credentials for UsernameToken authentication.

Version:
1.0
Author:
Rodrigo Ruiz

Constructor Summary
UsernameTokenCredentials(java.lang.String userName, java.lang.String password)
          Creates a new instance with the specified name and password.
 
Method Summary
 java.lang.String getUserName()
          Gets the user name.
 void setup(javax.xml.rpc.Stub stub)
          Configures the specified remote stub to use these credentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameTokenCredentials

public UsernameTokenCredentials(java.lang.String userName,
                                java.lang.String password)
Creates a new instance with the specified name and password.

Parameters:
userName - a string with the user name
password - a string with the user password
Method Detail

getUserName

public java.lang.String getUserName()
Gets the user name.

Specified by:
getUserName in interface Credentials
Returns:
a string with the user name

setup

public void setup(javax.xml.rpc.Stub stub)
Configures the specified remote stub to use these credentials.

Specified by:
setup in interface Credentials
Parameters:
stub - the stub to configure


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.