public class KdcConnection extends Object
| Constructor and Description |
|---|
KdcConnection(KdcConfig config)
Creates a new instance of KdcConnection.
|
| Modifier and Type | Method and Description |
|---|---|
ChangePasswordResult |
changePassword(String clientPrincipal,
String oldPassword,
String newPassword) |
ServiceTicket |
getServiceTicket(String clientPrincipal,
String password,
String serverPrincipal)
Authenticates to the Kerberos server and gets a service ticket for the given server principal
|
TgTicket |
getTgt(String principal,
String password)
Authenticates to the Kerberos server and gets the initial Ticket Granting Ticket
|
TgTicket |
getTgt(TgtRequest clientTgtReq) |
public KdcConnection(KdcConfig config)
config - the configuration of KDCpublic TgTicket getTgt(String principal, String password) throws Exception
principal - the client's principalpassword - password of the clientExceptionpublic ServiceTicket getServiceTicket(String clientPrincipal, String password, String serverPrincipal) throws KerberosException
principal - the client's principalpassword - password of the clientserverPrincipal - the application server's principalExceptionKerberosExceptionpublic TgTicket getTgt(TgtRequest clientTgtReq) throws KerberosException
KerberosExceptionpublic ChangePasswordResult changePassword(String clientPrincipal, String oldPassword, String newPassword) throws ChangePasswordException
ChangePasswordExceptionCopyright © 2021. All rights reserved.