|
Java AFS Admin API v1.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openafs.jafsadm.K5PasswordPolicy
An abstract representation of a Kerberos 5 Password Policy.
Constructor Summary | |
K5PasswordPolicy(String name)
Constructs a new K5PasswordPolicy object instance given the name of
Kerberos 5 Password Policy it will represent. |
Method Summary | |
int |
compareTo(K5PasswordPolicy user)
Compares two K5PasswordPolicy objects respective to their names and does not factor any other attribute. |
void |
create()
Creates a Kerberos 5 Password Policy that corresponds to this abstract representation. |
void |
delete()
Deletes the K5 Password Policy. |
boolean |
equals(K5PasswordPolicy policy)
Tests whether two K5PasswordPolicy objects are equal,
based on their names. |
int |
getMaxPasswordLifetime()
Returns the maximum lifetime of a password. |
short |
getMinCharacterClasses()
Returns the minimum number of character classes required. |
short |
getMinPasswordLength()
Returns the minimum length a password is allowed to have. |
int |
getMinPasswordLifetime()
Returns the minimum lifetime of a password (in seconds). |
String |
getName()
Returns the name of this password policy. |
int |
getPastKeyCount()
Returns the number of past keys kept. |
int |
getReferenceCount()
Returns the number of principals using this policy. |
void |
setMaxPasswordLifetime(int seconds)
Sets the maximum lifetime of a password (in seconds). |
void |
setMinCharacterClasses(int number)
Requires at least number of character classes in a password. |
void |
setMinPasswordLength(int characters)
Sets the minimum password length (character length). |
void |
setMinPasswordLifetime(int seconds)
Sets the minimum lifetime of a password (in seconds). |
void |
setPastKeyCount(int number)
Sets the number of past keys kept for a principal to number . |
String |
toString()
Returns the name of this K5PasswordPolicy |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public K5PasswordPolicy(String name) throws AFSAdminException
K5PasswordPolicy
object instance given the name of
Kerberos 5 Password Policy it will represent.name
- the name of the user to representAFSAdminException
- If an error occurs in the native codeMethod Detail |
public void create() throws AFSAdminException
AFSAdminException
- If an error occurs in the native codepublic void delete() throws AFSAdminException
Note that you must cancel the policy from all principals before deleting it. The delete_policy command will fail if it is in use by any principals.
AFSAdminException
- If an error occurs in the native codepublic String getName()
public int getMinPasswordLifetime() throws AFSAdminException
AFSAdminException
- If an error occurs in the native codepublic int getMaxPasswordLifetime() throws AFSAdminException
AFSAdminException
- If an error occurs in the native codepublic short getMinPasswordLength() throws AFSAdminException
AFSAdminException
- If an error occurs in the native codepublic short getMinCharacterClasses() throws AFSAdminException
AFSAdminException
- If an error occurs in the native codepublic int getPastKeyCount() throws AFSAdminException
AFSAdminException
- If an error occurs in the native codepublic int getReferenceCount() throws AFSAdminException
AFSAdminException
- If an error occurs in the native codepublic void setMaxPasswordLifetime(int seconds)
seconds
- the maximum lifetime of a password (in seconds).public void setMinPasswordLifetime(int seconds)
seconds
- the minimum lifetime of a password (in seconds).public void setMinPasswordLength(int characters)
characters
- the minimum password length (character length).public void setMinCharacterClasses(int number)
number
of character classes in a password.seconds
- of character classes in a password.public void setPastKeyCount(int number)
number
.number
- of past keys kept for a principalpublic int compareTo(K5PasswordPolicy user)
policy
- The K5PasswordPolicy object to be compared to this K5PasswordPolicy instancepublic boolean equals(K5PasswordPolicy policy)
K5PasswordPolicy
objects are equal,
based on their names.policy
- the user to testpublic String toString()
K5PasswordPolicy
toString
in class Object
K5PasswordPolicy
|
Java AFS Admin (jafsadm) API for OpenAFS | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |