Class KerberosTicketUtils


  • public final class KerberosTicketUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long getRefreshTime​(javax.security.auth.kerberos.KerberosTicket ticket)  
      static javax.security.auth.kerberos.KerberosTicket getTicketGrantingTicket​(javax.security.auth.Subject subject)  
      static boolean isOriginalTicketGrantingTicket​(javax.security.auth.kerberos.KerberosTicket ticket)
      Check whether the server principal is the TGS's principal
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getTicketGrantingTicket

        public static javax.security.auth.kerberos.KerberosTicket getTicketGrantingTicket​(javax.security.auth.Subject subject)
      • getRefreshTime

        public static long getRefreshTime​(javax.security.auth.kerberos.KerberosTicket ticket)
      • isOriginalTicketGrantingTicket

        public static boolean isOriginalTicketGrantingTicket​(javax.security.auth.kerberos.KerberosTicket ticket)
        Check whether the server principal is the TGS's principal
        Parameters:
        ticket - the original TGT (the ticket that is obtained when a kinit is done)
        Returns:
        true or false