toolbox.uddi
Interface SecurityProxy

Package class diagram package SecurityProxy
All Known Implementing Classes:
SecurityProxyJUDDIImpl, SecurityProxyOSRImpl

public interface SecurityProxy

Interface that defines a proxy for the UDDI Security API. Implementations of this interface are responsible for abstracting the UDDI security API from various UDDI implementations.


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.
 

Method Detail

init

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

Parameters:
manager - UDDIManager that created this proxy.
props - Map containing configuration properties.
Throws:
UDDIException - if the manager cannot be initialised.

getAuthenticationToken

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

Returns:
String containing an authentication token.
Throws:
UDDIException - when authentication fails.

getAuthenticationToken

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

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

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

Parameters:
token - String containing the token to destroy.

destroy

void destroy()
Destroy this proxy instance.