Project: stp

com.ibm.rational.stp.client.samples
Class Example.MyAuthCallback

Object
  extended by com.ibm.rational.stp.client.samples.Example.MyAuthCallback
All Implemented Interfaces:
javax.wvcm.ProviderFactory.Callback
Enclosing class:
Example

private static class Example.MyAuthCallback
extends Object
implements javax.wvcm.ProviderFactory.Callback

CM API Authentication callback. This callback is invoked when the ClearCase CM API provider logs in to the CM Server.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.wvcm.ProviderFactory.Callback
javax.wvcm.ProviderFactory.Callback.Authentication
 
Field Summary
private  String login
           
private  String password
           
private  String serverUrl
           
 
Constructor Summary
Example.MyAuthCallback(String serverUrl, String login, String password)
          Construct a new authentication callback with the correct credentials for the specified CM server.
 
Method Summary
 javax.wvcm.ProviderFactory.Callback.Authentication getAuthentication(String realm, int retries)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverUrl

private final String serverUrl

login

private final String login

password

private final String password
Constructor Detail

Example.MyAuthCallback

public Example.MyAuthCallback(String serverUrl,
                              String login,
                              String password)
Construct a new authentication callback with the correct credentials for the specified CM server.

Method Detail

getAuthentication

public javax.wvcm.ProviderFactory.Callback.Authentication getAuthentication(String realm,
                                                                            int retries)
Specified by:
getAuthentication in interface javax.wvcm.ProviderFactory.Callback

Generated Thu 18-Dec-2008 10:12 PM

Copyright © IBM 2008. All rights reserved.