oracle.uddi.client
Class SimpleAuthenticationLiaison
java.lang.Object
|
+--oracle.uddi.client.SimpleAuthenticationLiaison
- public class SimpleAuthenticationLiaison
- extends java.lang.Object
- implements AuthenticationLiaison
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.
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleAuthenticationLiaison
public SimpleAuthenticationLiaison(java.lang.String szUserId,
java.lang.String szCred)
- Instantiate an instance. This is all a UddiClient user needs to do.
- Parameters:
szUserId
- refers to the userid element of get_authToken message.szCred
- refers to the cred element of get_authToken message.
init
public void init(UddiClient uddiClient)
- Specified by:
- init in interface AuthenticationLiaison
authenticate
public void authenticate()
throws UddiClientException,
org.apache.soap.SOAPException
- Specified by:
- authenticate in interface AuthenticationLiaison
getAuthInfo
public java.lang.String getAuthInfo()
- Specified by:
- getAuthInfo in interface AuthenticationLiaison
close
public void close()
throws UddiClientException,
org.apache.soap.SOAPException
- Close the authenticated session.
getAuthInfo()
will return null
from this point onwards.
- Specified by:
- close in interface AuthenticationLiaison
Copyright © 2001 - Oracle Corporation