| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static KerberosTicket | |
| pack-priv static KerberosTicket | getInitialTicket(GSSCaller caller, String clientPrincipal)
Retrieves the initial TGT corresponding to the client principal from the Subject in the specified AccessControlContext. |
| public static ServiceCreds | getServiceCreds(GSSCaller caller, String serverPrincipal)
Retrieves the ServiceCreds for the specified server principal from the Subject in the specified AccessControlContext. |
| pack-priv static KerberosTicket | getServiceTicket(GSSCaller caller, String clientPrincipal, String serverPrincipal)
Retrieves the ticket corresponding to the client/server principal pair from the Subject in the specified AccessControlContext. |
| public static String | |
| public static EncryptionKey[] | Returns: the EKeys, never null, might be emptythe javax..KeyTab object ktab, PrincipalName the PrincipalName cname)A helper method to get EncryptionKeys from a javax..KeyTab |
| public static KeyTab | Returns: the sun..KeyTab objectthe javax..KeyTab object ktab)A helper method to get a sun..KeyTab from a javax..KeyTab |
| public static Credentials |
| Krb5Util | back to summary |
|---|---|
| private Krb5Util() Default constructor | |
| credsToTicket | back to summary |
|---|---|
| public static KerberosTicket credsToTicket(Credentials serviceCreds) | |
| getInitialTicket | back to summary |
|---|---|
| pack-priv static KerberosTicket getInitialTicket(GSSCaller caller, String clientPrincipal) throws LoginException Retrieves the initial TGT corresponding to the client principal from the Subject in the specified AccessControlContext. If the ticket can not be found in the Subject, and if useSubjectCredsOnly is false, then obtain ticket from a LoginContext. | |
| getServiceCreds | back to summary |
|---|---|
| public static ServiceCreds getServiceCreds(GSSCaller caller, String serverPrincipal) throws LoginException Retrieves the ServiceCreds for the specified server principal from the Subject in the specified AccessControlContext. If not found, and if useSubjectCredsOnly is false, then obtain from a LoginContext. | |
| getServiceTicket | back to summary |
|---|---|
| pack-priv static KerberosTicket getServiceTicket(GSSCaller caller, String clientPrincipal, String serverPrincipal) Retrieves the ticket corresponding to the client/server principal pair from the Subject in the specified AccessControlContext. | |
| keyInfo | back to summary |
|---|---|
| public static String keyInfo(byte[] data) | |
| keysFromJavaxKeyTab | back to summary |
|---|---|
| public static EncryptionKey[] keysFromJavaxKeyTab(KeyTab ktab, PrincipalName cname) A helper method to get EncryptionKeys from a javax..KeyTab
| |
| snapshotFromJavaxKeyTab | back to summary |
|---|---|
| public static KeyTab snapshotFromJavaxKeyTab(KeyTab ktab) A helper method to get a sun..KeyTab from a javax..KeyTab | |
| ticketToCreds | back to summary |
|---|---|
| public static Credentials ticketToCreds(KerberosTicket kerbTicket) throws KrbException, IOException | |