|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.protocol.shared.AbstractProtocolService
org.apache.directory.server.protocol.shared.DirectoryBackedService
org.apache.directory.server.changepw.ChangePasswordServer
public class ChangePasswordServer
Contains the configuration parameters for the Change Password protocol provider.
Field Summary | |
---|---|
static int |
DEFAULT_CATEGORY_COUNT
The default change password password policy for category count. |
static int |
DEFAULT_PASSWORD_LENGTH
The default change password password policy for password length. |
static int |
DEFAULT_TOKEN_SIZE
The default change password password policy for token size. |
static java.lang.String[] |
ENCRYPTION_TYPES_DEFAULT
The default encryption types. |
Fields inherited from class org.apache.directory.server.protocol.shared.AbstractProtocolService |
---|
transports |
Constructor Summary | |
---|---|
ChangePasswordServer()
Creates a new instance of ChangePasswordConfiguration. |
Method Summary | |
---|---|
long |
getAllowableClockSkew()
Returns the allowable clock skew. |
int |
getCategoryCountPolicy()
Returns the category count. |
EncryptionType[] |
getEncryptionTypes()
Returns the encryption types. |
int |
getPasswordLengthPolicy()
Returns the password length. |
java.lang.String |
getPrimaryRealm()
Returns the primary realm. |
javax.security.auth.kerberos.KerberosPrincipal |
getServicePrincipal()
Returns the Change Password service principal. |
int |
getTokenSizePolicy()
Returns the token size. |
boolean |
isEmptyAddressesAllowed()
Returns whether empty addresses are allowed. |
void |
setAllowableClockSkew(long allowableClockSkew)
|
void |
setEmptyAddressesAllowed(boolean isEmptyAddressesAllowed)
|
void |
setEncryptionTypes(EncryptionType[] encryptionTypes)
|
void |
setPolicyCategoryCount(int policyCategoryCount)
Sets the policy category count - what's this? |
void |
setPolicyPasswordLength(int policyPasswordLength)
Sets the policy's minimum?? password length. |
void |
setPolicyTokenSize(int policyTokenSize)
Sets the policy token size - what's this? |
void |
setPrimaryRealm(java.lang.String primaryRealm)
|
void |
setServicePrincipal(java.lang.String servicePrincipal)
|
void |
start()
Starts this ProtocolService which binds acceptors on the protocol port. |
void |
stop()
Stops this ProtocolService which unbinds acceptors on the protocol port. |
java.lang.String |
toString()
|
Methods inherited from class org.apache.directory.server.protocol.shared.DirectoryBackedService |
---|
getSearchBaseDn, isCatelogBased, setCatelogBased, setSearchBaseDn |
Methods inherited from class org.apache.directory.server.protocol.shared.AbstractProtocolService |
---|
addTransports, getDatagramAcceptor, getDirectoryService, getServiceId, getServiceName, getSocketAcceptor, getTransports, isEnabled, isStarted, setDirectoryService, setEnabled, setServiceId, setServiceName, setStarted, setTransports |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] ENCRYPTION_TYPES_DEFAULT
public static final int DEFAULT_PASSWORD_LENGTH
public static final int DEFAULT_CATEGORY_COUNT
public static final int DEFAULT_TOKEN_SIZE
Constructor Detail |
---|
public ChangePasswordServer()
Method Detail |
---|
public java.lang.String getPrimaryRealm()
public void setPrimaryRealm(java.lang.String primaryRealm)
primaryRealm
- The primaryRealm to set.public EncryptionType[] getEncryptionTypes()
public void setEncryptionTypes(EncryptionType[] encryptionTypes)
encryptionTypes
- The encryptionTypes to set.public long getAllowableClockSkew()
public void setAllowableClockSkew(long allowableClockSkew)
allowableClockSkew
- The allowableClockSkew to set.public javax.security.auth.kerberos.KerberosPrincipal getServicePrincipal()
public void setServicePrincipal(java.lang.String servicePrincipal)
servicePrincipal
- The Change Password service principal to set.public boolean isEmptyAddressesAllowed()
public void setEmptyAddressesAllowed(boolean isEmptyAddressesAllowed)
isEmptyAddressesAllowed
- The isEmptyAddressesAllowed to set.public int getPasswordLengthPolicy()
public int getCategoryCountPolicy()
public int getTokenSizePolicy()
public void start() throws java.io.IOException, org.apache.directory.shared.ldap.exception.LdapInvalidDnException
ProtocolService
java.io.IOException
- if we cannot bind to the specified ports
org.apache.directory.shared.ldap.exception.LdapInvalidDnException
public void stop()
ProtocolService
public void setPolicyPasswordLength(int policyPasswordLength)
policyPasswordLength
- the minimum password length requirementpublic void setPolicyCategoryCount(int policyCategoryCount)
policyCategoryCount
- the policy category countpublic void setPolicyTokenSize(int policyTokenSize)
policyTokenSize
- the policy token sizepublic java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |