4.1 Implementing User-defined Password Storage Scheme
The user-defined password storage scheme framework in Oracle Unified
Directory (OUD) follows an approach similar to the one of the plugin API described
earlier. The User-defined password storage scheme related interfaces and classes are
defined in the package, oracle.oud.pwdstoragescheme
. For more
information on how to set up the IDE environment, see Oracle® Fusion Middleware Java API
Reference for Oracle Unified Directory 12c (12.2.1.4.0) and see Before You Begin Deploying OUD Plug-in.
The custom user-defined password storage scheme must implement the
oracle.oud.pwdstoragescheme.ManagedPasswordStorageScheme
interface
with the generic T as oracle.oud.pwdstoragescheme.UserPassword
or
oracle.oud.pwdstoragescheme.AuthPassword
.
For ease of development, OUD API provides an abstract class
oracle.oud.pwdstoragescheme.AbstractPasswordStorageScheme
that
implements the oracle.oud.pwdstoragescheme.ManagedPasswordStorageScheme
interface.
The custom implementation class can extend from
oracle.oud.pwdstoragescheme.AbstractPasswordStorageScheme
. The
implementation class must provide a default constructor implementation and override the
methods that implement the underlying logic for encoding and validating password.
Example:
public class CustomUserPasswordHash extends AbstractPasswordStorageScheme<UserPassword>