Skip to content

Commit

Permalink
[chore](api-doc)Add HadoopKerberosAuthenticator api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinKirs committed Nov 12, 2024
1 parent eb0a188 commit fb1276f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ private UserGroupInformation login(Subject subject) throws IOException {
return UserGroupInformation.getUGIFromSubject(subject);
}

/**
* Calculate the next time to refresh kerberos ticket.
*
* @param subject the subject of kerberos authentication
* @return the next time to refresh kerberos ticket
*/
private static long calculateNextRefreshTime(Subject subject) {
Preconditions.checkArgument(subject != null, "subject must be present in kerberos based UGI");
KerberosTicket tgtTicket = KerberosTicketUtils.getTicketGrantingTicket(subject);
Expand Down

0 comments on commit fb1276f

Please sign in to comment.