org.idoox.security.spi
Interface ClientSecurityProvider

All Superinterfaces:
SecurityProvider

public interface ClientSecurityProvider
extends SecurityProvider

This interface must be implemented by the client security provider instances.

Since:
4.0
Component:
Security-Specific

Field Summary
 
Fields inherited from interface org.idoox.security.spi.SecurityProvider
SEC_PROVIDER_CONFIG, SEC_PROVIDER_PROPERTIES, WEBSERVICE_STUB, WEBSERVICE_STUB_INTERFACE, WSCONTEXT_KEY
 
Method Summary
 PrincipalAuthenticator getAuthenticator()
          Returns instance of the PrincipalAuthenticator interface for this security provider.
 java.lang.String[] getNames()
          Returns array of security provider names which are support by this security provider implementation.
 java.util.Properties getProperties()
          Returns properties associated with given provider.
 void resetContexts(java.util.Map parameters)
          This method should remove any established communication contexts from memory.
 void setCurrent(java.util.Map parameters)
          Performs tasks associated with making this security provider active for initiating new calls.
 void unsetCurrent(java.util.Map parameters)
          Performs tasks associated with dectivating the security provider for new outgoing calls.
 
Methods inherited from interface org.idoox.security.spi.SecurityProvider
getPropertiesIface
 

Method Detail

getAuthenticator

public PrincipalAuthenticator getAuthenticator()
Returns instance of the PrincipalAuthenticator interface for this security provider.

Returns:
instance of PrincipalAuthenticator interface

getNames

public java.lang.String[] getNames()
Returns array of security provider names which are support by this security provider implementation.

Returns:
array of supported security provider names

getProperties

public java.util.Properties getProperties()
Returns properties associated with given provider.

The properties contain some general characteristics of the security mechanism implemented by given provider, such as default quality of protection, description, etc.

Returns:
properties for this provider

setCurrent

public void setCurrent(java.util.Map parameters)
Performs tasks associated with making this security provider active for initiating new calls.

Parameters:
parameters - map containing parameters for the security provider activation process. For example it can contain Web Service stub on which the activation of the mechanism has to be done.

unsetCurrent

public void unsetCurrent(java.util.Map parameters)
Performs tasks associated with dectivating the security provider for new outgoing calls.

Parameters:
parameters - map containing parameters for the security provider deactivation process. For example it can contain Web Service stub on which the deactivation of the mechanism has to be done.

resetContexts

public void resetContexts(java.util.Map parameters)
This method should remove any established communication contexts from memory.

This method is called from the Current implementation from the resetCredentials().

Parameters:
parameters - map containing parameters for the security provider to be used during the contexts reset.