docs: public static String validateSecurityContext(Subject subject, final byte[] serviceTicket) throws GSSException {
  
          // Accept the context and return the client principal name.
          return Subject.doAs(subject, (PrivilegedAction<String>)() -> {
              try {
                  // Identify the server that communications are being made
                  // to.
                  GSSManager manager = GSSManager.getInstance();
                  GSSContext context = manager.createContext((GSSCredential) null);
                  context.acceptSecContext(serviceTicket, 0, serviceTicket.length);
                  return context.getSrcName().toString();
              } catch (Exception e) {
                  log.error(Util.getMessage("Krb5TokenKerberosContextProcessingException"),e);
                  return null;
              }
          });
      }