krb5.client.lib
Class KrbAsReq

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

public class KrbAsReq
extends java.lang.Object

Class Description : Compose KRB_AS_REQ message and verify KRB_AS_REP message.

Version:
1.1
Author:
Bojan Pajkovski

Constructor Summary
KrbAsReq(Context cont, AuthContext authCont)
          Class constructor
KrbAsReq(EncryptionKey key, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets)
          Class constructor
KrbAsReq(KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets)
          Class constructor
KrbAsReq(java.lang.StringBuffer password, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets)
          Class constructor
 
Method Summary
 ASReq getASReqMsg()
          Return composed ASReq message
 void verifyASRep(ASRep rep, EncryptionKey key)
          Verify ASRep message
 void verifyASRep(ASRep rep, java.lang.String password)
          Verify ASRep message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KrbAsReq

public KrbAsReq(Context cont,
                AuthContext authCont)
         throws KrbException,
                java.io.IOException
Class constructor

Parameters:
cont - Context
authCont - AuthContext
Throws:
KrbException
java.io.IOException

KrbAsReq

public KrbAsReq(java.lang.StringBuffer password,
                KDCOptions options,
                PrincipalName cname,
                PrincipalName sname,
                KerberosTime from,
                KerberosTime till,
                KerberosTime rtime,
                int[] eTypes,
                HostAddresses addresses,
                Ticket[] additionalTickets)
         throws KrbException,
                java.io.IOException
Class constructor

Parameters:
password - StringBuffer
options - KDCOptions
cname - PrincipalName
sname - PrincipalName
from - KerberosTime
till - KerberosTime
rtime - KerberosTime
eTypes - int[]
addresses - HostAddresses
additionalTickets - Ticket[]
Throws:
KrbException
java.io.IOException

KrbAsReq

public KrbAsReq(EncryptionKey key,
                KDCOptions options,
                PrincipalName cname,
                PrincipalName sname,
                KerberosTime from,
                KerberosTime till,
                KerberosTime rtime,
                int[] eTypes,
                HostAddresses addresses,
                Ticket[] additionalTickets)
         throws KrbException,
                java.io.IOException
Class constructor

Parameters:
key - EncryptionKey
options - KDCOptions
cname - PrincipalName
sname - PrincipalName
from - KerberosTime
till - KerberosTime
rtime - KerberosTime
eTypes - int[]
addresses - HostAddresses
additionalTickets - Ticket[]
Throws:
KrbException
java.io.IOException

KrbAsReq

public KrbAsReq(KDCOptions options,
                PrincipalName cname,
                PrincipalName sname,
                KerberosTime from,
                KerberosTime till,
                KerberosTime rtime,
                int[] eTypes,
                HostAddresses addresses,
                Ticket[] additionalTickets)
         throws KrbException,
                java.io.IOException
Class constructor

Parameters:
options - KDCOptions
cname - PrincipalName
sname - PrincipalName
from - KerberosTime
till - KerberosTime
rtime - KerberosTime
eTypes - int[]
addresses - HostAddresses
additionalTickets - Ticket[]
Throws:
KrbException
java.io.IOException
Method Detail

getASReqMsg

public ASReq getASReqMsg()
Return composed ASReq message

Returns:
ASReq

verifyASRep

public void verifyASRep(ASRep rep,
                        java.lang.String password)
                 throws KrbException
Verify ASRep message

Parameters:
rep - ASRep
password - String
Throws:
KrbException

verifyASRep

public void verifyASRep(ASRep rep,
                        EncryptionKey key)
                 throws KrbException
Verify ASRep message

Parameters:
rep - ASRep
key - EncryptionKey
Throws:
KrbException