| 
 | Oracle Application Server Web Services UDDI Client API Reference 10g (9.0.4) Part No. B10396-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--oracle.uddi.client.SimpleAuthenticationLiaison
Implements a simple authentication scheme provided by the UDDI messages get_authToken and discard_authToken, as defined in the UDDI specification. It is expected that the UDDI registry to be authenticated to understands the simple get/discard token scheme and allows simple username/password authentication.
Note: Clients of the API should do nothing more than instantiate this class. Its methods are called indirectly by the UddiClient object.
| Constructor Summary | |
| SimpleAuthenticationLiaison(java.lang.String szUserId, java.lang.String szCred)Instantiate an instance. | |
| Method Summary | |
|  void | authenticate()Perform the proper authentication. | 
|  void | close()Close the authenticated session. | 
|  java.lang.String | getAuthInfo()Return the token of the authenticated session. | 
|  java.lang.String | getPassword() | 
|  java.lang.String | getUserName() | 
|  void | init(UddiClient uddiClient)Initialize the authentication liaison. | 
|  void | setCredentials(java.lang.String szUserId, java.lang.String szCred)Change the credential information. | 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public SimpleAuthenticationLiaison(java.lang.String szUserId,
                                   java.lang.String szCred)
szUserId - refers to the userid element of get_authToken message.szCred - refers to the cred element of get_authToken message.| Method Detail | 
public void init(UddiClient uddiClient)
AuthenticationLiaisoninit in interface AuthenticationLiaison
public void authenticate()
                  throws UddiClientException,
                         org.apache.soap.SOAPException
AuthenticationLiaisonAuthenticationLiaison.getAuthInfo() must return the token for the authenticated session.authenticate in interface AuthenticationLiaisonUddiClientExceptionorg.apache.soap.SOAPExceptionpublic java.lang.String getAuthInfo()
AuthenticationLiaisongetAuthInfo in interface AuthenticationLiaisonUddiClient
public void setCredentials(java.lang.String szUserId,
                           java.lang.String szCred)
                    throws UddiClientException,
                           org.apache.soap.SOAPException
UddiClientExceptionorg.apache.soap.SOAPExceptionpublic java.lang.String getUserName()
public java.lang.String getPassword()
public void close()
           throws UddiClientException,
                  org.apache.soap.SOAPException
getAuthInfo() will return null from this point onwards.close in interface AuthenticationLiaisonUddiClientExceptionorg.apache.soap.SOAPException| 
 | Oracle Application Server Web Services UDDI Client API Reference 10g (9.0.4) Part No. B10396-01 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||