krb5.app.lib
Class KrbApReq

java.lang.Object
  extended by krb5.app.lib.KrbApReq

public class KrbApReq
extends java.lang.Object

Class Description : KrbApReq reconstructs the received KRB_AP_REQ message and then authenticates it.

Version:
1.1
Author:
Bojan Pajkovski

Constructor Summary
KrbApReq(byte[] msg)
          Class constructor
 
Method Summary
 void authenticate(EncryptionKey key)
          Authenticates with the specified key
 void authenticate(EncryptionKey key, HostAddress sender)
          Authenticates with the specified key for a given sender
 KrbCreds creds()
          Returns Krbcreds
 KerberosTime ctime()
          Returns the time
 APOptions getAPOptions()
          Returns application options
 java.lang.Integer getSeqNumber()
          Returns sequence number
 EncryptionKey getSubKey()
          Returns subject key
 boolean mutualAuthenticationRequired()
          Determines whether mutual authentication is required
 boolean useSessionKey()
          Determines whether session key is used
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KrbApReq

public KrbApReq(byte[] msg)
         throws KrbException,
                java.io.IOException,
                java.lang.ClassNotFoundException
Class constructor

Parameters:
msg - byte[]
Throws:
KrbException
java.io.IOException
java.lang.ClassNotFoundException
Method Detail

authenticate

public void authenticate(EncryptionKey key)
                  throws KrbException
Authenticates with the specified key

Parameters:
key - is of type EncryptionKey
Throws:
KrbException - an exception
See Also:
EncryptionKey, KrbException

authenticate

public void authenticate(EncryptionKey key,
                         HostAddress sender)
                  throws KrbException
Authenticates with the specified key for a given sender

Parameters:
key - is of type EncryptionKey
sender - is of type HostAddress
Throws:
KrbException - an exception
See Also:
EncryptionKey, HostAddress, KrbException

creds

public KrbCreds creds()
Returns Krbcreds

Returns:
KrbCreds as a result
See Also:
KrbCreds

ctime

public KerberosTime ctime()
Returns the time

Returns:
KerberosTime is a result
See Also:
KerberosTime

getAPOptions

public APOptions getAPOptions()
                       throws KrbException
Returns application options

Returns:
APOptions is a result
Throws:
KrbException - an exception
See Also:
APOptions, KrbException

mutualAuthenticationRequired

public boolean mutualAuthenticationRequired()
                                     throws KrbException
Determines whether mutual authentication is required

Returns:
boolean is a result
Throws:
KrbException - an exception
See Also:
KrbException

useSessionKey

public boolean useSessionKey()
                      throws KrbException
Determines whether session key is used

Returns:
boolean is a result
Throws:
KrbException - an exception
See Also:
KrbException

getSubKey

public EncryptionKey getSubKey()
Returns subject key

Returns:
EncryptionKey is a result
See Also:
EncryptionKey

getSeqNumber

public java.lang.Integer getSeqNumber()
Returns sequence number

Returns:
Integer is a result
See Also:
Integer