org.apache.directory.server.kerberos.kdc
Class KdcServer

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.kerberos.kdc.KdcServer
All Implemented Interfaces:
ProtocolService

public class KdcServer
extends DirectoryBackedService

Contains the configuration parameters for the Kerberos protocol provider.

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

Constructor Summary
KdcServer()
          Creates a new instance of KdcConfiguration.
 
Method Summary
 long getAllowableClockSkew()
          Returns the allowable clock skew.
 java.util.Set<EncryptionType> getEncryptionTypes()
          Returns the encryption types.
 long getMaximumRenewableLifetime()
           
 long getMaximumTicketLifetime()
           
 java.lang.String getPrimaryRealm()
          Returns the primary realm.
 javax.security.auth.kerberos.KerberosPrincipal getServicePrincipal()
          Returns the service principal for this KDC service.
 boolean isBodyChecksumVerified()
           
 boolean isEmptyAddressesAllowed()
           
 boolean isForwardableAllowed()
           
 boolean isPaEncTimestampRequired()
          Returns whether pre-authentication by encrypted timestamp is required.
 boolean isPostdatedAllowed()
           
 boolean isProxiableAllowed()
           
 boolean isRenewableAllowed()
           
 void setAllowableClockSkew(long allowableClockSkew)
           
 void setBodyChecksumVerified(boolean isBodyChecksumVerified)
           
 void setEmptyAddressesAllowed(boolean isEmptyAddressesAllowed)
           
 void setEncryptionTypes(EncryptionType[] encryptionTypes)
          Initialize the encryptionTypes set
 void setEncryptionTypes(java.util.Set<EncryptionType> encryptionTypes)
          Initialize the encryptionTypes set
 void setForwardableAllowed(boolean isForwardableAllowed)
           
 void setKdcPrincipal(java.lang.String kdcPrincipal)
           
 void setMaximumRenewableLifetime(long maximumRenewableLifetime)
           
 void setMaximumTicketLifetime(long maximumTicketLifetime)
           
 void setPaEncTimestampRequired(boolean isPaEncTimestampRequired)
           
 void setPostdatedAllowed(boolean isPostdatedAllowed)
           
 void setPrimaryRealm(java.lang.String primaryRealm)
           
 void setProxiableAllowed(boolean isProxiableAllowed)
           
 void setRenewableAllowed(boolean isRenewableAllowed)
           
 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
 

Constructor Detail

KdcServer

public KdcServer()
Creates a new instance of KdcConfiguration.

Method Detail

getAllowableClockSkew

public long getAllowableClockSkew()
Returns the allowable clock skew.

Returns:
The allowable clock skew.

isEmptyAddressesAllowed

public boolean isEmptyAddressesAllowed()
Returns:
the isEmptyAddressesAllowed

isForwardableAllowed

public boolean isForwardableAllowed()
Returns:
the isForwardableAllowed

isPostdatedAllowed

public boolean isPostdatedAllowed()
Returns:
the isPostdatedAllowed

isProxiableAllowed

public boolean isProxiableAllowed()
Returns:
the isProxiableAllowed

isRenewableAllowed

public boolean isRenewableAllowed()
Returns:
the isRenewableAllowed

getMaximumRenewableLifetime

public long getMaximumRenewableLifetime()
Returns:
the maximumRenewableLifetime

getMaximumTicketLifetime

public long getMaximumTicketLifetime()
Returns:
the maximumTicketLifetime

setAllowableClockSkew

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

setEncryptionTypes

public void setEncryptionTypes(EncryptionType[] encryptionTypes)
Initialize the encryptionTypes set

Parameters:
encryptionTypes - the encryptionTypes to set

setEncryptionTypes

public void setEncryptionTypes(java.util.Set<EncryptionType> encryptionTypes)
Initialize the encryptionTypes set

Parameters:
encryptionTypes - the encryptionTypes to set

setEmptyAddressesAllowed

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

setForwardableAllowed

public void setForwardableAllowed(boolean isForwardableAllowed)
Parameters:
isForwardableAllowed - the isForwardableAllowed to set

setPaEncTimestampRequired

public void setPaEncTimestampRequired(boolean isPaEncTimestampRequired)
Parameters:
isPaEncTimestampRequired - the isPaEncTimestampRequired to set

setPostdatedAllowed

public void setPostdatedAllowed(boolean isPostdatedAllowed)
Parameters:
isPostdatedAllowed - the isPostdatedAllowed to set

setProxiableAllowed

public void setProxiableAllowed(boolean isProxiableAllowed)
Parameters:
isProxiableAllowed - the isProxiableAllowed to set

setRenewableAllowed

public void setRenewableAllowed(boolean isRenewableAllowed)
Parameters:
isRenewableAllowed - the isRenewableAllowed to set

setKdcPrincipal

public void setKdcPrincipal(java.lang.String kdcPrincipal)
Parameters:
kdcPrincipal - the kdcPrincipal to set

setMaximumRenewableLifetime

public void setMaximumRenewableLifetime(long maximumRenewableLifetime)
Parameters:
maximumRenewableLifetime - the maximumRenewableLifetime to set

setMaximumTicketLifetime

public void setMaximumTicketLifetime(long maximumTicketLifetime)
Parameters:
maximumTicketLifetime - the maximumTicketLifetime to set

setPrimaryRealm

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

getPrimaryRealm

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

Returns:
The primary realm.

getServicePrincipal

public javax.security.auth.kerberos.KerberosPrincipal getServicePrincipal()
Returns the service principal for this KDC service.

Returns:
The service principal for this KDC service.

getEncryptionTypes

public java.util.Set<EncryptionType> getEncryptionTypes()
Returns the encryption types.

Returns:
The encryption types.

isPaEncTimestampRequired

public boolean isPaEncTimestampRequired()
Returns whether pre-authentication by encrypted timestamp is required.

Returns:
Whether pre-authentication by encrypted timestamp is required.

isBodyChecksumVerified

public boolean isBodyChecksumVerified()
Returns:
the isBodyChecksumVerified

setBodyChecksumVerified

public void setBodyChecksumVerified(boolean isBodyChecksumVerified)
Parameters:
isBodyChecksumVerified - the isBodyChecksumVerified to set

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 sockets

stop

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



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