org.apache.directory.server.changepw
Class ChangePasswordServer

java.lang.Object
  extended by org.apache.directory.server.protocol.shared.AbstractProtocolService
      extended by org.apache.directory.server.protocol.shared.DirectoryBackedService
          extended by org.apache.directory.server.changepw.ChangePasswordServer
All Implemented Interfaces:
ProtocolService

public class ChangePasswordServer
extends DirectoryBackedService

Contains the configuration parameters for the Change Password protocol provider.

Version:
$Rev: 682235 $, $Date: 2008-08-04 02:43:52 +0200 (Mo, 04 Aug 2008) $
Author:
Apache Directory Project
'XBean'

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.
 
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.
 
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
getDatagramAcceptor, getDirectoryService, getIpAddress, getIpPort, getServiceId, getServiceName, getSocketAcceptor, getTransportProtocols, isEnabled, isStarted, setDatagramAcceptor, setDirectoryService, setEnabled, setIpAddress, setIpPort, setServiceId, setServiceName, setSocketAcceptor, setStarted, setTransportProtocols
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCRYPTION_TYPES_DEFAULT

public static final java.lang.String[] ENCRYPTION_TYPES_DEFAULT
The default encryption types.


DEFAULT_PASSWORD_LENGTH

public static final int DEFAULT_PASSWORD_LENGTH
The default change password password policy for password length.

See Also:
Constant Field Values

DEFAULT_CATEGORY_COUNT

public static final int DEFAULT_CATEGORY_COUNT
The default change password password policy for category count.

See Also:
Constant Field Values

DEFAULT_TOKEN_SIZE

public static final int DEFAULT_TOKEN_SIZE
The default change password password policy for token size.

See Also:
Constant Field Values
Constructor Detail

ChangePasswordServer

public ChangePasswordServer()
Creates a new instance of ChangePasswordConfiguration.

Method Detail

getPrimaryRealm

public java.lang.String getPrimaryRealm()
Returns the primary realm.

Returns:
The primary realm.

setPrimaryRealm

public void setPrimaryRealm(java.lang.String primaryRealm)
Parameters:
primaryRealm - The primaryRealm to set.

getEncryptionTypes

public EncryptionType[] getEncryptionTypes()
Returns the encryption types.

Returns:
The encryption types.

setEncryptionTypes

public void setEncryptionTypes(EncryptionType[] encryptionTypes)
Parameters:
encryptionTypes - The encryptionTypes to set.

getAllowableClockSkew

public long getAllowableClockSkew()
Returns the allowable clock skew.

Returns:
The allowable clock skew.

setAllowableClockSkew

public void setAllowableClockSkew(long allowableClockSkew)
Parameters:
allowableClockSkew - The allowableClockSkew to set.

getServicePrincipal

public javax.security.auth.kerberos.KerberosPrincipal getServicePrincipal()
Returns the Change Password service principal.

Returns:
The Change Password service principal.

setServicePrincipal

public void setServicePrincipal(java.lang.String servicePrincipal)
Parameters:
servicePrincipal - The Change Password service principal to set.

isEmptyAddressesAllowed

public boolean isEmptyAddressesAllowed()
Returns whether empty addresses are allowed.

Returns:
Whether empty addresses are allowed.

setEmptyAddressesAllowed

public void setEmptyAddressesAllowed(boolean isEmptyAddressesAllowed)
Parameters:
isEmptyAddressesAllowed - The isEmptyAddressesAllowed to set.

getPasswordLengthPolicy

public int getPasswordLengthPolicy()
Returns the password length.

Returns:
The password length.

getCategoryCountPolicy

public int getCategoryCountPolicy()
Returns the category count.

Returns:
The category count.

getTokenSizePolicy

public int getTokenSizePolicy()
Returns the token size.

Returns:
The token size.

start

public void start()
           throws java.io.IOException
Description copied from interface: ProtocolService
Starts this ProtocolService which binds acceptors on the protocol port.

Throws:
java.io.IOException - if we cannot bind to the specified ports

stop

public void stop()
Description copied from interface: ProtocolService
Stops this ProtocolService which unbinds acceptors on the protocol port.


setPolicyPasswordLength

public void setPolicyPasswordLength(int policyPasswordLength)
Sets the policy's minimum?? password length.

Parameters:
policyPasswordLength - the minimum password length requirement

setPolicyCategoryCount

public void setPolicyCategoryCount(int policyCategoryCount)
Sets the policy category count - what's this?

Parameters:
policyCategoryCount - the policy category count

setPolicyTokenSize

public void setPolicyTokenSize(int policyTokenSize)
Sets the policy token size - what's this?

Parameters:
policyTokenSize - the policy token size


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.