krb5.client.lib
Class AuthContext

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

public class AuthContext
extends java.lang.Object

Class Description : Client Authentication context. It represents a per-connection context used by the various functions involved directly in client/server authentication. Some of the data stored in this context includes addresses, sequence numbers, checksum type, credential cache handler, etc.

Version:
1.1
Author:
Bojan Pajkovski

Field Summary
static int APP_Port
           
static int AS_Port
          Authentication server port
static CredCacheInterface cCache
          credential cache at client side
static EncryptionKey clientKey
          Client's secret key
static boolean isINITIALIZED
          if the authContext has been initialized;
static java.lang.String KDC_Host
          KDC host name
static java.lang.String KDC_Realm
          KDC default realm
static java.lang.String KRB_CACHE_FILE
          cache file fule name including absolute path
static java.lang.String KRB_CACHE_FILE_NAME
          default cache file name
static HostAddress localAddress
          Local address
static int localPort
          Local port
static LocalSeqNumber localSeqNumber
          Local sequence number
static int reqCksumType
          Request checksum type
static int safeCksumType
          Safe checksum type
static int TGS_Port
          Ticket granting server port TGS port may be different from AS port but the KDC name is unique since the database don't support multi-host
static PrincipalName usr
          the principal name used now
 
Constructor Summary
AuthContext()
           
 
Method Summary
static void init(java.lang.String usr_name, java.lang.String usr_psword)
          Initialize authentication context constants.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isINITIALIZED

public static boolean isINITIALIZED
if the authContext has been initialized;


usr

public static PrincipalName usr
the principal name used now


KDC_Host

public static java.lang.String KDC_Host
KDC host name


KDC_Realm

public static java.lang.String KDC_Realm
KDC default realm


AS_Port

public static int AS_Port
Authentication server port


TGS_Port

public static int TGS_Port
Ticket granting server port TGS port may be different from AS port but the KDC name is unique since the database don't support multi-host


APP_Port

public static int APP_Port

localAddress

public static HostAddress localAddress
Local address


localPort

public static int localPort
Local port


clientKey

public static EncryptionKey clientKey
Client's secret key


localSeqNumber

public static LocalSeqNumber localSeqNumber
Local sequence number


reqCksumType

public static int reqCksumType
Request checksum type


safeCksumType

public static int safeCksumType
Safe checksum type


KRB_CACHE_FILE_NAME

public static final java.lang.String KRB_CACHE_FILE_NAME
default cache file name

See Also:
Constant Field Values

KRB_CACHE_FILE

public static java.lang.String KRB_CACHE_FILE
cache file fule name including absolute path


cCache

public static CredCacheInterface cCache
credential cache at client side

Constructor Detail

AuthContext

public AuthContext()
Method Detail

init

public static void init(java.lang.String usr_name,
                        java.lang.String usr_psword)
                 throws RealmException
Initialize authentication context constants. Once this class is initialized, you are ready to compose and send authentication message to the KDC.

Parameters:
usr_name - User name
usr_psword - User Password - Principal's secret key
Throws:
RealmException