com.ibm.di.plugin.pwstore.jms
Class JMSPasswordStoreITIMDecorator

java.lang.Object
  extended by com.ibm.di.plugin.pwstore.jms.JMSPasswordStoreITIMDecorator
All Implemented Interfaces:
IPasswordSynchronizer, PasswordStore

public class JMSPasswordStoreITIMDecorator
extends java.lang.Object
implements PasswordStore, IPasswordSynchronizer

The concrete ITIM password policy validation decorator. This class name may be used as the value of the password plug-in configuration property named syncClassname.

This class decorates an PasswordStore password policy validation checking functions. The validation function is provided by ITIM. The concrete PasswordStore decorated is the existing JMSPasswordStore.


Field Summary
protected  PasswordPolicyFactory factory
           
protected  BasePasswordSynchronizerDecorator impl
           
 
Constructor Summary
JMSPasswordStoreITIMDecorator()
           Create new Decorator.
 
Method Summary
 boolean addPasswordValues(java.lang.String id, java.util.Vector passwords)
          Deprecated. 
 boolean deletePasswordValues(java.lang.String id, java.util.Vector passwords)
          Deprecated. 
 void initialize(java.lang.Object aObj)
          This method initializes the password store.
 boolean isAvailable(PasswordChange change)
          This method check the password store availability,
 boolean readyToSync(java.lang.String id)
          Deprecated. 
 boolean readyToSync(java.lang.String id, java.util.Vector passwords)
          Deprecated. 
 boolean setExtendedData(PasswordChange change)
          This method sends additional information about a user.
 boolean setExtendedData(java.lang.String id, java.lang.String extendedData)
          Deprecated. 
 boolean store(PasswordChange change)
          This method stores password change in the password store.
 boolean syncPassword(java.lang.String id, java.util.Vector passwords)
          Deprecated. 
 void terminate()
          This method cleans any reserved resources such as files, connections etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

impl

protected BasePasswordSynchronizerDecorator impl

factory

protected PasswordPolicyFactory factory
Constructor Detail

JMSPasswordStoreITIMDecorator

public JMSPasswordStoreITIMDecorator()
                              throws java.lang.ClassNotFoundException,
                                     PolicyInitializationException,
                                     PolicyConnectionException,
                                     java.lang.IllegalAccessException,
                                     java.lang.InstantiationException

Create new Decorator.

Uses PasswordPolicyServiceBuilder to create an ITIM specfic PasswordPolicyFactory. The class name of this factory can be defined in the configuration file named mqepwstore.props. This file must be in the classpath.

Throws:
java.lang.ClassNotFoundException - if class defined by the configuration property passwordPolicyServiceFactory cannot be found.
PolicyInitializationException - if configuration properties needed by the factory are incorrect.
PolicyConnectionException - if an error occurs creating or opening the connection the actual password policy service provider.
java.lang.IllegalAccessException - if the factory class cannot be accessed.
java.lang.InstantiationException - if the factory class cannot be instantiated.
Method Detail

readyToSync

@Deprecated
public boolean readyToSync(java.lang.String id)
Deprecated. 

Specified by:
readyToSync in interface IPasswordSynchronizer

readyToSync

@Deprecated
public boolean readyToSync(java.lang.String id,
                                      java.util.Vector passwords)
Deprecated. 

Specified by:
readyToSync in interface IPasswordSynchronizer

syncPassword

@Deprecated
public boolean syncPassword(java.lang.String id,
                                       java.util.Vector passwords)
Deprecated. 

Specified by:
syncPassword in interface IPasswordSynchronizer

addPasswordValues

@Deprecated
public boolean addPasswordValues(java.lang.String id,
                                            java.util.Vector passwords)
Deprecated. 

Specified by:
addPasswordValues in interface IPasswordSynchronizer

deletePasswordValues

@Deprecated
public boolean deletePasswordValues(java.lang.String id,
                                               java.util.Vector passwords)
Deprecated. 

Specified by:
deletePasswordValues in interface IPasswordSynchronizer

setExtendedData

@Deprecated
public boolean setExtendedData(java.lang.String id,
                                          java.lang.String extendedData)
Deprecated. 

Specified by:
setExtendedData in interface IPasswordSynchronizer

isAvailable

public boolean isAvailable(PasswordChange change)
Description copied from interface: PasswordStore
This method check the password store availability,

Specified by:
isAvailable in interface PasswordStore
Parameters:
change - object describing the password change
Returns:
true if password store is available; false otherwise
See Also:
PasswordStore.isAvailable(PasswordChange)

store

public boolean store(PasswordChange change)
Description copied from interface: PasswordStore
This method stores password change in the password store.

Specified by:
store in interface PasswordStore
Parameters:
change - object describing the password change
Returns:
true if the operation is successful; false otherwise
See Also:
PasswordStore#syncPassword(PasswordChange)

initialize

public void initialize(java.lang.Object aObj)
                throws java.lang.Exception
Description copied from interface: PasswordStore
This method initializes the password store.

Specified by:
initialize in interface IPasswordSynchronizer
Specified by:
initialize in interface PasswordStore
Parameters:
aObj - object of type PWSyncLog used for logging
Throws:
java.lang.Exception
See Also:
PasswordStore.initialize(java.lang.Object)

terminate

public void terminate()
Description copied from interface: PasswordStore
This method cleans any reserved resources such as files, connections etc.

Specified by:
terminate in interface IPasswordSynchronizer
Specified by:
terminate in interface PasswordStore
See Also:
PasswordStore.terminate()

setExtendedData

public boolean setExtendedData(PasswordChange change)
Description copied from interface: PasswordStore
This method sends additional information about a user.

Currently only the Windows Password Synchronizer plug-in sends extended data.

Specified by:
setExtendedData in interface PasswordStore
Parameters:
change - object describing the password change
Returns:
true if the operation is successful; false otherwise
See Also:
PasswordStore#setExtendedData(String, String)