public class

KrbAsReq

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

Class Overview

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

Summary

[Expand]
Inherited Constants
From class sun.security.mule.krb5.KrbKdcReq
Fields
private boolean DEBUG
private boolean KDC_EMPTY_ADDRESSES_ALLOWED
private boolean PA_ENC_TIMESTAMP_REQUIRED
private ASReq asReqMessg
private Config kerberosConfig
private int pa_etype
private boolean pa_exists
private byte[] pa_s2kparams
private byte[] pa_salt
private PrincipalName princName
[Expand]
Inherited Fields
From class sun.security.mule.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, Config kerberosConfig)
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(EncryptionKey[] keys, 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)
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.mule.krb5.KrbKdcReq
From class java.lang.Object

Fields

private boolean DEBUG

private boolean KDC_EMPTY_ADDRESSES_ALLOWED

private boolean PA_ENC_TIMESTAMP_REQUIRED

private ASReq asReqMessg

private Config kerberosConfig

private int pa_etype

private boolean pa_exists

private byte[] pa_s2kparams

private byte[] pa_salt

private PrincipalName princName

Public Constructors

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

Parameters
password
options
cname
sname
from
till
rtime
eTypes
addresses
additionalTickets
kerberosConfig
Throws
IOException
KrbException

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)

Parameters
password
pa_exists
etype
salt
s2kparams
options
cname
sname
from
till
rtime
eTypes
addresses
additionalTickets
kerberosConfig
Throws
IOException
KrbException

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

Parameters
keys
options
cname
sname
from
till
rtime
eTypes
addresses
additionalTickets
kerberosConfig
Throws
IOException
KrbException

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)

Parameters
keys
pa_exists
etype
salt
s2kparams
options
cname
sname
from
till
rtime
eTypes
addresses
additionalTickets
kerberosConfig
Throws
IOException
KrbException

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

Throws
IOException
KrbException

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

Parameters
etype
salt
params
name