sun.security.mule.krb5
Class KrbAsReq

java.lang.Object
  extended by sun.security.mule.krb5.KrbKdcReq
      extended by sun.security.mule.krb5.KrbAsReq

public class KrbAsReq
extends KrbKdcReq

This class encapsulates the KRB-AS-REQ message that the client sends to the KDC.


Field Summary
 
Fields inherited from class sun.security.mule.krb5.KrbKdcReq
DEFAULT_KDC_TIMEOUT, ibuf, obuf
 
Constructor Summary
KrbAsReq(char[] password, boolean pa_exists, int etype, byte[] salt, byte[] s2kparams, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets, Config kerberosConfig)
           
KrbAsReq(char[] password, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets, Config kerberosConfig)
           
KrbAsReq(EncryptionKey[] keys, boolean pa_exists, int etype, byte[] salt, byte[] s2kparams, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets, Config kerberosConfig)
           
KrbAsReq(EncryptionKey[] keys, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets, Config kerberosConfig)
           
 
Method Summary
 KrbAsRep getReply(char[] password)
          Returns an AS-REP message corresponding to the AS-REQ that was sent.
 KrbAsRep getReply(EncryptionKey[] keys)
          Returns an AS-REP message corresponding to the AS-REQ that was sent.
 String send()
          Sends an AS request to the realm of the client.
 void updatePA(int etype, byte[] salt, byte[] params, PrincipalName name)
           
 
Methods inherited from class sun.security.mule.krb5.KrbKdcReq
initializeDefaults, send, send, send
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KrbAsReq

public KrbAsReq(char[] password,
                KDCOptions options,
                PrincipalName cname,
                PrincipalName sname,
                KerberosTime from,
                KerberosTime till,
                KerberosTime rtime,
                int[] eTypes,
                HostAddresses addresses,
                Ticket[] additionalTickets,
                Config kerberosConfig)
         throws KrbException,
                IOException
Throws:
KrbException
IOException

KrbAsReq

public KrbAsReq(char[] password,
                boolean pa_exists,
                int etype,
                byte[] salt,
                byte[] s2kparams,
                KDCOptions options,
                PrincipalName cname,
                PrincipalName sname,
                KerberosTime from,
                KerberosTime till,
                KerberosTime rtime,
                int[] eTypes,
                HostAddresses addresses,
                Ticket[] additionalTickets,
                Config kerberosConfig)
         throws KrbException,
                IOException
Throws:
KrbException
IOException

KrbAsReq

public KrbAsReq(EncryptionKey[] keys,
                KDCOptions options,
                PrincipalName cname,
                PrincipalName sname,
                KerberosTime from,
                KerberosTime till,
                KerberosTime rtime,
                int[] eTypes,
                HostAddresses addresses,
                Ticket[] additionalTickets,
                Config kerberosConfig)
         throws KrbException,
                IOException
Throws:
KrbException
IOException

KrbAsReq

public KrbAsReq(EncryptionKey[] keys,
                boolean pa_exists,
                int etype,
                byte[] salt,
                byte[] s2kparams,
                KDCOptions options,
                PrincipalName cname,
                PrincipalName sname,
                KerberosTime from,
                KerberosTime till,
                KerberosTime rtime,
                int[] eTypes,
                HostAddresses addresses,
                Ticket[] additionalTickets,
                Config kerberosConfig)
         throws KrbException,
                IOException
Throws:
KrbException
IOException
Method Detail

updatePA

public void updatePA(int etype,
                     byte[] salt,
                     byte[] params,
                     PrincipalName name)

getReply

public KrbAsRep getReply(char[] password)
                  throws KrbException,
                         IOException
Returns an AS-REP message corresponding to the AS-REQ that was sent.

Parameters:
password - The password that will be used to derive the secret key that will decrypt the AS-REP from the KDC.
Throws:
KrbException - if an error occurs while reading the data.
IOException - if an I/O error occurs while reading encoded data.

send

public String send()
            throws IOException,
                   KrbException
Sends an AS request to the realm of the client. returns the KDC hostname that the request was sent to

Throws:
IOException
KrbException

getReply

public KrbAsRep getReply(EncryptionKey[] keys)
                  throws KrbException,
                         IOException
Returns an AS-REP message corresponding to the AS-REQ that was sent.

Parameters:
keys - The secret keys that will decrypt the AS-REP from the KDC; key selected depends on etype used to encrypt data.
Throws:
KrbException - if an error occurs while reading the data.
IOException - if an I/O error occurs while reading encoded data.


Copyright © 2013. All Rights Reserved.