com.ibm.security.krb5
Class KrbAsReq
- java.lang.Object
com.ibm.security.krb5.KrbAsReq
- public class KrbAsReq
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
DEFAULT_KDC_TIMEOUT
Default timeout period when requesting a ticket from a KDC.
|
|
ibuf
DOCUMENT ME!
|
|
obuf
DOCUMENT ME!
|
Constructor Summary
Constructor and Description |
---|
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)
|
KrbAsReq(EncryptionKey key,KDCOptions options,PrincipalName cname,PrincipalName sname,KerberosTime from,KerberosTime till,KerberosTime rtime,int[] eTypes,HostAddresses addresses,Ticket[] additionalTickets,boolean usePreauth,PAData[] paData)
|
KrbAsReq(PrincipalName principal)
Creates a KRB-AS-REQ to send to the default KDC
|
KrbAsReq(PrincipalName principal,EncryptionKey Key,boolean usePreauth,PAData[] paData)
Creates a KRB-AS-REQ to send to the default KDC
|
KrbAsReq(PrincipalName principal,java.lang.StringBuffer password,boolean usePreauth,PAData[] paData)
Creates a KRB-AS-REQ to send to the default KDC
|
KrbAsReq(java.lang.String 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(java.lang.StringBuffer password,KDCOptions options,PrincipalName cname,PrincipalName sname,KerberosTime from,KerberosTime till,KerberosTime rtime,int[] eTypes,HostAddresses addresses,Ticket[] additionalTickets,boolean usePreauth,PAData[] paData)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
getReply(EncryptionKey key,java.lang.String password)
Returns an AS-REP message corresponding to the AS-REQ that
was sent.
|
|
getReply(java.lang.StringBuffer password)
Returns an AS-REP message corresponding to the AS-REQ that
was sent.
|
|
|
send()
Sends an AS request to the realm of the client.
|
|
send(java.lang.String realm)
Sends the provided data to the KDC of the specified realm.
|
|
send(java.lang.String realm,boolean useTCP)
DOCUMENT ME!
|
|
send(java.lang.String realm,java.lang.String tempKdc,boolean useTCP)
|
|
updatePA(int etype,byte[] salt,byte[] params,PrincipalName name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
DEFAULT_KDC_TIMEOUT
- public static final int DEFAULT_KDC_TIMEOUT
Default timeout period when requesting a ticket from a KDC. If not
specified in the configuration file, a value of 30 seconds is used.
obuf
- protected byte[] obuf
DOCUMENT ME!
ibuf
- protected byte[] ibuf
DOCUMENT ME!
Constructor Detail
KrbAsReq
- public KrbAsReq(PrincipalName principal)
- throws KrbException
- java.io.IOException
Creates a KRB-AS-REQ to send to the default KDC
KrbAsReq
- public KrbAsReq(PrincipalName principal,
- EncryptionKey Key,
- boolean usePreauth,
- PAData[] paData)
- throws KrbException
- java.io.IOException
Creates a KRB-AS-REQ to send to the default KDC
KrbAsReq
- public KrbAsReq(PrincipalName principal,
- java.lang.StringBuffer password,
- boolean usePreauth,
- PAData[] paData)
- throws KrbException
- java.io.IOException
Creates a KRB-AS-REQ to send to the default KDC
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)
- throws KrbException
- java.io.IOException
KrbAsReq
- public KrbAsReq(java.lang.String 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)
- throws KrbException
- java.io.IOException
KrbAsReq
- public KrbAsReq(java.lang.StringBuffer password,
- KDCOptions options,
- PrincipalName cname,
- PrincipalName sname,
- KerberosTime from,
- KerberosTime till,
- KerberosTime rtime,
- int[] eTypes,
- HostAddresses addresses,
- Ticket[] additionalTickets,
- boolean usePreauth,
- PAData[] paData)
- throws KrbException
- java.io.IOException
KrbAsReq
- public KrbAsReq(EncryptionKey key,
- KDCOptions options,
- PrincipalName cname,
- PrincipalName sname,
- KerberosTime from,
- KerberosTime till,
- KerberosTime rtime,
- int[] eTypes,
- HostAddresses addresses,
- Ticket[] additionalTickets,
- boolean usePreauth,
- PAData[] paData)
- throws KrbException
- java.io.IOException
Method Detail
updatePA
- public void updatePA(int etype,
- byte[] salt,
- byte[] params,
- PrincipalName name)
getReply
- public KrbAsRep getReply(java.lang.StringBuffer password)
- throws KrbException
- java.io.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. java.io.IOException
- if an I/O error occurs while reading encoded data. send
- public java.lang.String send()
- throws java.io.IOException
- KrbException
Sends an AS request to the realm of the client.
getReply
- public KrbAsRep getReply(EncryptionKey key,
- java.lang.String password)
- throws KrbException
- java.io.IOException
Returns an AS-REP message corresponding to the AS-REQ that
was sent.
Parameters:
key
- The secret key that will decrypt the AS-REP from
the KDC. Throws:
KrbException
- if an error occurs while reading the data. java.io.IOException
- if an I/O error occurs while reading encoded data. send
- public java.lang.String send(java.lang.String realm)
- throws java.io.IOException
- KrbException
Sends the provided data to the KDC of the specified realm. Returns the
response from the KDC. Default realm/KDC is used if realm is null.
Parameters:
realm
- the realm of the KDC where data is to be sent. Returns:
the kdc to which the AS request was sent to
Throws:
java.io.InterruptedIOException
- if timeout expires java.io.IOException
send
- public java.lang.String send(java.lang.String realm,
- boolean useTCP)
- throws java.io.IOException
- KrbException
DOCUMENT ME!
Parameters:
realm
- DOCUMENT ME! useTCP
- DOCUMENT ME! Returns:
DOCUMENT ME!
Throws:
java.io.IOException
- DOCUMENT ME! KrbException
- DOCUMENT ME! send
- public void send(java.lang.String realm,
- java.lang.String tempKdc,
- boolean useTCP)
- throws java.io.IOException
- KrbException