toolbox.uddi
Class SecurityProxyJUDDIImpl

Package class diagram package SecurityProxyJUDDIImpl
java.lang.Object
  extended by toolbox.uddi.SecurityProxyJUDDIImpl
All Implemented Interfaces:
SecurityProxy

public class SecurityProxyJUDDIImpl
extends java.lang.Object
implements SecurityProxy

SecurityProxy implementation to interact with the Apache jUDDI Service Registry.


Constructor Summary
SecurityProxyJUDDIImpl()
          Default constructor.
 
Method Summary
 void destroy()
          Destroy this proxy instance.
 void destroyAuthenticationToken(java.lang.String token)
          Destroy the given authentication token.
 java.lang.String getAuthenticationToken()
          Return an authentication token using the default user and password from the proxy configuration.
 java.lang.String getAuthenticationToken(java.lang.String user, java.lang.String passwd)
          Return an authentiction token using the given user and password.
 void init(UDDIManager manager, java.util.Map props)
          Initialise this proxy with the given manager and configuration properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityProxyJUDDIImpl

public SecurityProxyJUDDIImpl()
Default constructor.

Method Detail

init

public void init(UDDIManager manager,
                 java.util.Map props)
          throws UDDIException
Initialise this proxy with the given manager and configuration properties.

The propertiees map must contain the following keys:

Specified by:
init in interface SecurityProxy
Parameters:
manager - UDDIManager that created this proxy.
props - Map containing configuration properties.
Throws:
UDDIException - if the manager cannot be initialised.

getAuthenticationToken

public java.lang.String getAuthenticationToken()
                                        throws UDDIException
Return an authentication token using the default user and password from the proxy configuration.

Specified by:
getAuthenticationToken in interface SecurityProxy
Returns:
String containing an authentication token.
Throws:
UDDIException - when authentication fails.

getAuthenticationToken

public java.lang.String getAuthenticationToken(java.lang.String user,
                                               java.lang.String passwd)
                                        throws UDDIException
Return an authentiction token using the given user and password.

Specified by:
getAuthenticationToken in interface SecurityProxy
Parameters:
user - String containing the user to authenticate.
passwd - String containing the password to authenticate.
Returns:
String containing an authentication token.
Throws:
UDDIException - when authentiction fails.

destroyAuthenticationToken

public void destroyAuthenticationToken(java.lang.String token)
Destroy the given authentication token.

Specified by:
destroyAuthenticationToken in interface SecurityProxy
Parameters:
token - String containing the token to destroy.

destroy

public void destroy()
Destroy this proxy instance.

Specified by:
destroy in interface SecurityProxy