|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface PasswordPolicyService
Provides features to enable password value conformance check and synchonization against externally defined policies.
| Method Summary | |
|---|---|
String |
getLastStatusMessage()
Get the status message returned from the previous invocation of synchronizePassword(String, List) or
validatePassword(String, List). |
void |
initialize()
Perform and required post construction initialization. |
boolean |
ready()
Ensure the password policy subsystem is available. |
void |
setConnection(PolicyServiceConnection conn)
Set the connection. |
void |
synchronizePassword(String userName,
List passwordValues)
Propagate the password values for the given user. |
void |
terminate()
Perform and required cleanup in preparation for shutdown. |
boolean |
validatePassword(String userName,
List passwordValues)
Check the password values conform to policy. |
| Method Detail |
|---|
void setConnection(PolicyServiceConnection conn)
conn - -
The connection.
IllegalArgumentException - if conn is null.boolean ready()
boolean validatePassword(String userName,
List passwordValues)
throws PolicyConnectionException,
MalformedResponseException
userName - -
The user name, e.g. jdoe or eruid=jdoepasswordValues - -
List of associated password values to be checked. List must
have length > 0
PolicyConnectionException - if connection to policy service is lost.
MalformedResponseException - if a policy service response cannot be parsed.
IllegalArgumentException - if passwordValues.length() <= 0.
void synchronizePassword(String userName,
List passwordValues)
throws PolicyConnectionException,
MalformedResponseException,
PasswordSynchException
userName - -
The user name, e.g. jdoe or eruid=jdoepasswordValues - -
List of associated password values to be synchronized. List
must have length > 0
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.
IllegalArgumentException - if passwordValues.length() <= 0.
void initialize()
throws PolicyInitializationException
PolicyInitializationExceptionvoid terminate()
String getLastStatusMessage()
synchronizePassword(String, List) or
validatePassword(String, List).
null if no
status was returned.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||