com.ibm.security.krb5
Class KrbTgsReq
- java.lang.Object
com.ibm.security.krb5.KrbTgsReq
- public class KrbTgsReq
- 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 |
---|
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 |
---|---|
|
getOutgoingMessage()
|
getPrincName()
|
|
getReply(Credentials asCreds)
Returns the TGS-REP that the KDC sends back.
|
|
getServName()
|
|
|
send()
Sends a TGS request to the realm of the target.
|
|
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)
|
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
KrbTgsReq
- public KrbTgsReq(Credentials asCreds,
- PrincipalName sname,
- int desiredLifetime)
- throws KrbException
- 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
- public KrbTgsReq(KDCOptions options,
- Credentials asCreds,
- PrincipalName sname,
- KerberosTime from,
- KerberosTime till,
- KerberosTime rtime,
- int[] eTypes,
- HostAddresses addresses,
- AuthorizationData authorizationData,
- Ticket[] additionalTickets,
- EncryptionKey subKey)
- throws KrbException
- java.io.IOException
Method Detail
send
- public java.lang.String send()
- throws java.io.IOException
- KrbException
Sends a TGS request to the realm of the target.
getReply
- public KrbTgsRep getReply(Credentials asCreds)
- throws KrbException
- java.io.IOException
Returns the TGS-REP that the KDC sends back.
getOutgoingMessage
- public byte[] getOutgoingMessage( )
getPrincName
- public PrincipalName getPrincName( )
getServName
- public PrincipalName getServName( )
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