krb5.client.lib
Class Context

java.lang.Object
  extended by krb5.client.lib.Context

public class Context
extends java.lang.Object

Class Description : Client site Context. It initializes the information about the operating parameters for Kerberos, such as what realm the client is in, where is the KDC for that realm, as well as where are the configuration and/or log files. When called, this class will automatically be initialized.

Version:
1.1
Author:
Bojan Pajkovski

Field Summary
static java.lang.Integer AS_PORT
          Authentication server port
static long clockSkew
          Clock skew
static java.lang.String DEFAULT_REALM
          Default realm
static APOptions defaultAPOptions
          Default AP options
static int defaultAPReqCksumType
          Default AP request checksum type
static KDCOptions defaultKDCOptions
          Default KDC options
static int defaultKRBSafeCksumType
          Default KRB safe checksum type
static int[] initialTicketETypes
          Initial ticket encryption types
static java.lang.String KDC_HOST_NAME
          Host name
static int kdcReqCksumType
          KDC request checksum type
static java.lang.String KRB_CONF_FILE
          Default configuration file name
static java.lang.String KRB_CONF_PATH
          Default path to the configuration file
static java.lang.String KRB_LOG_FILE
          Default log file name
static java.lang.String KRB_LOG_PATH
          Default path to the log file
static ReplayCacheInterface replayCache
          Replay cache at client
static LocalSeqNumber seqNumber
          Sequence number
static java.lang.Integer TGS_PORT
          Ticket granting ticket server port
static int[] tgsETypes
          TGS encryptions types
 
Constructor Summary
Context()
           
 
Method Summary
static void setASPort(java.lang.String port)
          Sets authentication server port
static void setDefaultRealm(java.lang.String realm)
          Sets the default realm
static void setKDCHostName(java.lang.String name)
          Sets KDC host name
static void setKRBConfPath(java.lang.String conf_path)
          Sets the default KRB_CONF_PATH
static void setKRBLogPath(java.lang.String log_path)
          Sets the default KRB_LOG_PATH
static void setTGSPort(java.lang.String port)
          Sets TGS port
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialTicketETypes

public static int[] initialTicketETypes
Initial ticket encryption types


tgsETypes

public static int[] tgsETypes
TGS encryptions types


seqNumber

public static LocalSeqNumber seqNumber
Sequence number


clockSkew

public static long clockSkew
Clock skew


kdcReqCksumType

public static int kdcReqCksumType
KDC request checksum type


defaultAPReqCksumType

public static int defaultAPReqCksumType
Default AP request checksum type


defaultKRBSafeCksumType

public static int defaultKRBSafeCksumType
Default KRB safe checksum type


defaultKDCOptions

public static KDCOptions defaultKDCOptions
Default KDC options


defaultAPOptions

public static APOptions defaultAPOptions
Default AP options


KRB_CONF_PATH

public static java.lang.String KRB_CONF_PATH
Default path to the configuration file


KRB_CONF_FILE

public static final java.lang.String KRB_CONF_FILE
Default configuration file name

See Also:
Constant Field Values

KRB_LOG_PATH

public static java.lang.String KRB_LOG_PATH
Default path to the log file


KRB_LOG_FILE

public static final java.lang.String KRB_LOG_FILE
Default log file name

See Also:
Constant Field Values

DEFAULT_REALM

public static java.lang.String DEFAULT_REALM
Default realm


KDC_HOST_NAME

public static java.lang.String KDC_HOST_NAME
Host name


AS_PORT

public static java.lang.Integer AS_PORT
Authentication server port


TGS_PORT

public static java.lang.Integer TGS_PORT
Ticket granting ticket server port


replayCache

public static final ReplayCacheInterface replayCache
Replay cache at client

Constructor Detail

Context

public Context()
Method Detail

setKRBConfPath

public static void setKRBConfPath(java.lang.String conf_path)
Sets the default KRB_CONF_PATH


setKRBLogPath

public static void setKRBLogPath(java.lang.String log_path)
Sets the default KRB_LOG_PATH


setDefaultRealm

public static void setDefaultRealm(java.lang.String realm)
Sets the default realm


setKDCHostName

public static void setKDCHostName(java.lang.String name)
Sets KDC host name


setASPort

public static void setASPort(java.lang.String port)
Sets authentication server port

Parameters:
port - String

setTGSPort

public static void setTGSPort(java.lang.String port)
Sets TGS port

Parameters:
port - String