|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.jgss.krb5.Krb5Util
public class Krb5Util
Utilities for obtaining and converting Kerberos tickets.
| Method Summary | |
|---|---|
static KerberosTicket |
credsToTicket(Credentials serviceCreds)
|
static KerberosKey[] |
getKeys(int caller,
String serverPrincipal,
AccessControlContext acc)
Retrieves the keys for the specified server principal from the Subject in the specified AccessControlContext. |
static Subject |
getSubject(int caller,
AccessControlContext acc)
Retrieves the caller's Subject, or Subject obtained by logging in via the specified caller. |
static KerberosTicket |
getTicketFromSubjectAndTgs(int caller,
String clientPrincipal,
String serverPrincipal,
String tgsPrincipal,
AccessControlContext acc,
Config kerberosConfig)
Retrieve the service ticket for serverPrincipal from caller's Subject or from Subject obtained by logging in, or if not found, via the Ticket Granting Service using the TGT obtained from the Subject. |
static Credentials |
ticketToCreds(KerberosTicket kerbTicket,
Config kerberosConfig)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static KerberosTicket getTicketFromSubjectAndTgs(int caller,
String clientPrincipal,
String serverPrincipal,
String tgsPrincipal,
AccessControlContext acc,
Config kerberosConfig)
throws LoginException,
KrbException,
IOException
LoginException
KrbException
IOException
public static Subject getSubject(int caller,
AccessControlContext acc)
throws LoginException
LoginException
public static KerberosKey[] getKeys(int caller,
String serverPrincipal,
AccessControlContext acc)
throws LoginException
LoginExceptionpublic static KerberosTicket credsToTicket(Credentials serviceCreds)
public static Credentials ticketToCreds(KerberosTicket kerbTicket,
Config kerberosConfig)
throws KrbException,
IOException
KrbException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||