public class

KrbAsReq

extends KrbKdcReq
java.lang.Object
   ↳ sun.security.krb5.KrbKdcReq
     ↳ sun.security.krb5.KrbAsReq

Class Overview

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

Summary

[Expand]
Inherited Fields
From class sun.security.krb5.KrbKdcReq
Public Constructors
KrbAsReq(char[] password, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets)
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)
KrbAsReq(EncryptionKey[] keys, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets)
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)
Public Methods
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)
[Expand]
Inherited Methods
From class sun.security.krb5.KrbKdcReq
From class java.lang.Object

Public Constructors

public KrbAsReq (char[] password, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets)

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)

public KrbAsReq (EncryptionKey[] keys, KDCOptions options, PrincipalName cname, PrincipalName sname, KerberosTime from, KerberosTime till, KerberosTime rtime, int[] eTypes, HostAddresses addresses, Ticket[] additionalTickets)

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)

Public Methods

public KrbAsRep getReply (char[] password)

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.

public KrbAsRep getReply (EncryptionKey[] keys)

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.

public String send ()

Sends an AS request to the realm of the client. returns the KDC hostname that the request was sent to

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