com.ibm.security.krb5

Class KrbTgsReq

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.KrbTgsReq

  1. public class KrbTgsReq
  2. extends java.lang.Object
This class encapsulates a Kerberos TGS-REQ that is sent from the client to the KDC.

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
DEFAULT_KDC_TIMEOUT
Default timeout period when requesting a ticket from a KDC.
  1. protected
  2. byte[]
ibuf
DOCUMENT ME!
  1. protected
  2. byte[]
obuf
DOCUMENT ME!

Constructor Summary

Constructor and Description
KrbTgsReq(Credentials asCreds,PrincipalName sname,int desiredLifetime)
Creates a TGS-REQ to send to the KDC.
KrbTgsReq(KDCOptions options,Credentials asCreds,PrincipalName sname,KerberosTime from,KerberosTime till,KerberosTime rtime,int[] eTypes,HostAddresses addresses,AuthorizationData authorizationData,Ticket[] additionalTickets,EncryptionKey subKey)

Method Summary

Modifier and Type Method and Description
  1. byte[]
getOutgoingMessage()
  1. PrincipalName
getPrincName()
  1. KrbTgsRep
getReply(Credentials asCreds)
Returns the TGS-REP that the KDC sends back.
  1. PrincipalName
getServName()
  1. java.lang.String
send()
Sends a TGS request to the realm of the target.
  1. java.lang.String
send(java.lang.String realm)
Sends the provided data to the KDC of the specified realm.
  1. java.lang.String
send(java.lang.String realm,boolean useTCP)
DOCUMENT ME!
  1. void
send(java.lang.String realm,java.lang.String tempKdc,boolean useTCP)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

DEFAULT_KDC_TIMEOUT

  1. 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

  1. protected byte[] obuf
DOCUMENT ME!

ibuf

  1. protected byte[] ibuf
DOCUMENT ME!

Constructor Detail

KrbTgsReq

  1. public KrbTgsReq(Credentials asCreds,
  2. PrincipalName sname,
  3. int desiredLifetime)
  4. throws KrbException
  5. java.io.IOException
Creates a TGS-REQ to send to the KDC. It uses the TGT credentials passed in to determine the name of the client principal.
Parameters:
asCreds - the credentials received from the AS-REQ. In other words, the credentials consisting of the TGT and its session key.
sname - the service principal for which a ticket is desired
desiredLifetime - the lifetime in seconds desired for the service ticket. This may not be the actual lifetime that the KDC assigns.
Throws:
java.io.IOException - TBD

KrbTgsReq

  1. public KrbTgsReq(KDCOptions options,
  2. Credentials asCreds,
  3. PrincipalName sname,
  4. KerberosTime from,
  5. KerberosTime till,
  6. KerberosTime rtime,
  7. int[] eTypes,
  8. HostAddresses addresses,
  9. AuthorizationData authorizationData,
  10. Ticket[] additionalTickets,
  11. EncryptionKey subKey)
  12. throws KrbException
  13. java.io.IOException
Throws:
java.io.IOException

Method Detail

send

  1. public java.lang.String send()
  2. throws java.io.IOException
  3. KrbException
Sends a TGS request to the realm of the target.
Throws:
java.io.IOException

getReply

  1. public KrbTgsRep getReply(Credentials asCreds)
  2. throws KrbException
  3. java.io.IOException
Returns the TGS-REP that the KDC sends back.
Throws:
//TBD
java.io.IOException

getOutgoingMessage

  1. public byte[] getOutgoingMessage( )

getPrincName

  1. public PrincipalName getPrincName( )

getServName

  1. public PrincipalName getServName( )

send

  1. public java.lang.String send(java.lang.String realm)
  2. throws java.io.IOException
  3. 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

  1. public java.lang.String send(java.lang.String realm,
  2. boolean useTCP)
  3. throws java.io.IOException
  4. KrbException
DOCUMENT ME!
Parameters:
realm - DOCUMENT ME!
useTCP - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
KrbException - DOCUMENT ME!

send

  1. public void send(java.lang.String realm,
  2. java.lang.String tempKdc,
  3. boolean useTCP)
  4. throws java.io.IOException
  5. KrbException
Throws:
java.io.IOException