Class PasswordPolicyServiceBuilder
- java.lang.Object
-
- com.ibm.di.plugin.pwstore.itim.policy.PasswordPolicyServiceBuilder
-
public final class PasswordPolicyServiceBuilder extends java.lang.ObjectBuilder or policy factory objects.
This class is uesed to create a
PasswordPolicyFactory. The builder uses property value information using the System.properties.The builder requires the following property names and values to be present
passwordPolicyServiceFactory - the class name of a class that implements thePasswordPolicyFactoryinterface.
Typical usage is shown below:
PasswordPolicyServiceBuilder builder = PasswordPolicyServiceBuilder.newBuilder()
builder.loadFactoryClass();
PasswordPolicyFactory factory = builder.getFactory();
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROP_NAME_FACTORY_CLASS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PasswordPolicyFactorygetFactory()Get the factory object instance following successful configuration and loading using other builder methods.voidloadFactoryClass()Load the factory class.static PasswordPolicyServiceBuildernewBuilder()Create new builder instance.
-
-
-
Field Detail
-
PROP_NAME_FACTORY_CLASS
public static final java.lang.String PROP_NAME_FACTORY_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
newBuilder
public static PasswordPolicyServiceBuilder newBuilder()
Create new builder instance.- Returns:
- new building instance.
-
loadFactoryClass
public void loadFactoryClass() throws java.lang.ClassNotFoundException, java.lang.ClassCastException, PolicyInitializationExceptionLoad the factory class.- Throws:
java.lang.ClassNotFoundException- if the class name associated with config property passwordPolicyServiceFactory cannot be loaded.PolicyInitializationException- if the config propertyjava.lang.ClassCastException- if the loaded class is not of type passwordPolicyServiceFactory is not present.java.lang.LinkageError- - if the linkage failsjava.lang.ExceptionInInitializerError- - if the initialization provoked by this method fails.
-
getFactory
public PasswordPolicyFactory getFactory() throws PolicyInitializationException, java.lang.InstantiationException, java.lang.IllegalStateException, java.lang.IllegalAccessException
Get the factory object instance following successful configuration and loading using other builder methods.- Returns:
- The factory.
- Throws:
java.lang.IllegalStateException- ifloadFactoryClass()has not called successfully previously.java.lang.InstantiationException- if this Class represents an abstract class, an interface, an array class, a primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails for some other reasonjava.lang.IllegalAccessException- if the class or its nullary constructor is not accessible.java.lang.ExceptionInInitializerError- - if the initialization provoked by this method fails.java.lang.SecurityException- - if there is no permission to create a new instance.PolicyInitializationException
-
-