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 KerberosException
principal
- the client's principalpassword
- password of the clientKerberosException
- If a Ticket Granting Ticket cannot be fetchpublic ServiceTicket getServiceTicket(String clientPrincipal, String password, String serverPrincipal) throws KerberosException
clientPrincipal
- the client's principalpassword
- password of the clientserverPrincipal
- the application server's principalKerberosException
- If the ServiceTicket cannot be fetchpublic TgTicket getTgt(TgtRequest clientTgtReq) throws KerberosException
KerberosException
public ChangePasswordResult changePassword(String clientPrincipal, String oldPassword, String newPassword) throws ChangePasswordException
ChangePasswordException
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.