sun.security.mule.krb5
Class KrbAsReq
java.lang.Object
sun.security.mule.krb5.KrbKdcReq
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.
|
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.