Interface PasswordPolicyService

  • All Known Implementing Classes:
    ITIMPasswordPolicyImpl

    public interface PasswordPolicyService
    Provides features to enable password value conformance check and synchonization against externally defined policies.
    • Method Detail

      • setConnection

        void setConnection​(PolicyServiceConnection conn)
        Set the connection.
        Parameters:
        conn - - The connection.
        Throws:
        java.lang.IllegalArgumentException - if conn is null.
      • ready

        boolean ready()
        Ensure the password policy subsystem is available. For example, check that network connectivity is available. If used, this method should be called before validatePassword(List).
        Returns:
        true if policy subsystem is ready.
      • validatePassword

        boolean validatePassword​(java.lang.String userName,
                                 java.util.List passwordValues)
                          throws PolicyConnectionException,
                                 MalformedResponseException
        Check the password values conform to policy.
        Parameters:
        userName - - The user name, e.g. jdoe or eruid=jdoe
        passwordValues - - List of associated password values to be checked. List must have length > 0
        Returns:
        true if all passwords conform to policy.
        Throws:
        PolicyConnectionException - if connection to policy service is lost.
        MalformedResponseException - if a policy service response cannot be parsed.
        java.lang.IllegalArgumentException - if passwordValues.length() <= 0.
      • synchronizePassword

        void synchronizePassword​(java.lang.String userName,
                                 java.util.List passwordValues)
                          throws PolicyConnectionException,
                                 MalformedResponseException,
                                 PasswordSynchException
        Propagate the password values for the given user.
        Parameters:
        userName - - The user name, e.g. jdoe or eruid=jdoe
        passwordValues - - List of associated password values to be synchronized. List must have length > 0
        Throws:
        PolicyConnectionException - if connection to policy service is lost.
        MalformedResponseException - if a policy service response cannot be parsed.
        PasswordSynchException - if any single password value cannot be synchronized, e.g. connection failure.
        java.lang.IllegalArgumentException - if passwordValues.length() <= 0.
      • terminate

        void terminate()
        Perform and required cleanup in preparation for shutdown.