Interface PasswordPolicyFactory
-
- All Known Implementing Classes:
ITIMPasswordPolicyFactoryImpl
public interface PasswordPolicyFactory
Factory for password policy service object family.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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(java.net.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.java.lang.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:
java.lang.IllegalArgumentException
- if conn is null.java.lang.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:
java.lang.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:
java.lang.IllegalStateException
- if not configured.
-
newPolicyServiceConnection
PolicyServiceConnection newPolicyServiceConnection() throws PolicyConnectionException
Factory method for connection objects.- Returns:
- new connection based on stored configuration.
- Throws:
PolicyConnectionException
java.lang.IllegalStateException
- if not configured.
-
newPolicyServiceConnection
PolicyServiceConnection newPolicyServiceConnection(java.net.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
java.lang.IllegalArgumentException
- if url is null.java.lang.IllegalStateException
- if not configured.
-
-