public TgsRequestWithTgt(KrbContext context, SgtTicket sgt) { super(context); setAllowedPreauth(PaDataType.TGS_REQ); ticket = sgt; clientPrincipal = sgt.getClientPrincipal(); if (clientPrincipal.getRealm() == null) { clientPrincipal.setRealm(sgt.getRealm()); } }
public TgsRequestWithTgt(KrbContext context, SgtTicket sgt) { super(context); setAllowedPreauth(PaDataType.TGS_REQ); ticket = sgt; clientPrincipal = sgt.getClientPrincipal(); if (clientPrincipal.getRealm() == null) { clientPrincipal.setRealm(sgt.getRealm()); } }
private Authenticator makeAuthenticator() throws KrbException { Authenticator authenticator = new Authenticator(); authenticator.setAuthenticatorVno(5); authenticator.setCname(clientPrincipal); authenticator.setCrealm(sgtTicket.getRealm()); long millis = System.currentTimeMillis(); int usec = (int) (millis % 1000) * 1000; millis -= millis % 1000; authenticator.setCtime(new KerberosTime(millis)); authenticator.setCusec(usec); if (flags.contains(ApOption.USE_SESSION_KEY)) { authenticator.setSubKey(sgtTicket.getSessionKey()); } return authenticator; }
private Authenticator makeAuthenticator() throws KrbException { Authenticator authenticator = new Authenticator(); authenticator.setAuthenticatorVno(5); authenticator.setCname(clientPrincipal); authenticator.setCrealm(sgtTicket.getRealm()); long millis = System.currentTimeMillis(); int usec = (int) (millis % 1000) * 1000; millis -= millis % 1000; authenticator.setCtime(new KerberosTime(millis)); authenticator.setCusec(usec); if (flags.contains(ApOption.USE_SESSION_KEY)) { authenticator.setSubKey(sgtTicket.getSessionKey()); } return authenticator; }
private Authenticator makeAuthenticator() throws KrbException { Authenticator authenticator = new Authenticator(); authenticator.setAuthenticatorVno(5); authenticator.setCname(clientPrincipal); authenticator.setCrealm(sgtTicket.getRealm()); long millis = System.currentTimeMillis(); int usec = (int) (millis % 1000) * 1000; millis -= millis % 1000; authenticator.setCtime(new KerberosTime(millis)); authenticator.setCusec(usec); if (flags.contains(ApOption.USE_SESSION_KEY)) { authenticator.setSubKey(sgtTicket.getSessionKey()); } return authenticator; }