com.ibm.di.plugin.pwstore.itim.policy
Interface PasswordPolicyFactory

All Known Implementing Classes:
ITIMPasswordPolicyFactoryImpl

public interface PasswordPolicyFactory

Factory for password policy service object family.


Method Summary
 void configure()
          Configure this factory.
 PasswordPolicyService newPasswordPolicyService()
          Factory method for PasswordPolicyService instances.
 PasswordPolicyService newPasswordPolicyService(PolicyServiceConnection conn)
          Factory method for PasswordPolicyService instances.
 PolicyServiceConnection newPolicyServiceConnection()
          Factory method for connection objects.
 PolicyServiceConnection newPolicyServiceConnection(URL url)
          Factory method for connection objects.
 PolicyServiceRequest newPolicyServiceRequest(PolicyServiceMessage.ServiceOp op)
          Factory method for request objects.
 PolicyServiceResponse newPolicyServiceResponse(PolicyServiceRequest req)
          Factory method for response objects.
 

Method Detail

configure

void configure()
               throws PolicyInitializationException
Configure this factory.

Throws:
PolicyInitializationException - if required property names are missing or values are not valid.

newPasswordPolicyService

PasswordPolicyService newPasswordPolicyService()
                                               throws PolicyConnectionException
Factory method for PasswordPolicyService instances.

Returns:
new PasswordPolicyService instance.
Throws:
PolicyConnectionException - if underlying connection cannot be created.
IllegalStateException - if not configured.

newPasswordPolicyService

PasswordPolicyService newPasswordPolicyService(PolicyServiceConnection conn)
Factory method for PasswordPolicyService instances.

Parameters:
conn - The conn to the policy service provider. Stored config is ignored if using this overload.
Returns:
new PasswordPolicyService instance.
Throws:
IllegalArgumentException - if conn is null.
IllegalStateException - if not configured.

newPolicyServiceRequest

PolicyServiceRequest newPolicyServiceRequest(PolicyServiceMessage.ServiceOp op)
Factory method for request objects.

Parameters:
op - The opeation type.
Returns:
a new request object.
Throws:
IllegalStateException - if not configured.

newPolicyServiceResponse

PolicyServiceResponse newPolicyServiceResponse(PolicyServiceRequest req)
Factory method for response objects.

Parameters:
req - The original request.
Returns:
new response object instance.
Throws:
IllegalStateException - if not configured.

newPolicyServiceConnection

PolicyServiceConnection newPolicyServiceConnection()
                                                   throws PolicyConnectionException
Factory method for connection objects.

Returns:
new connection based on stored configuration.
Throws:
PolicyConnectionException
IllegalStateException - if not configured.

newPolicyServiceConnection

PolicyServiceConnection newPolicyServiceConnection(URL url)
                                                   throws PolicyConnectionException
Factory method for connection objects.

Parameters:
url - The url
Returns:
new connection based on URL. Stored config is ignored if this overload is used.
Throws:
PolicyConnectionException
IllegalArgumentException - if url is null.
IllegalStateException - if not configured.