private KrbAsReq build(EncryptionKey key) throws KrbException, IOException {
  int[] eTypes;
  if (password != null) {
    eTypes=EType.getDefaults("default_tkt_enctypes");
  }
 else {
    EncryptionKey[] ks=Krb5Util.keysFromJavaxKeyTab(ktab,cname);
    eTypes=EType.getDefaults("default_tkt_enctypes",ks);
    for (    EncryptionKey k : ks)     k.destroy();
  }
  return new KrbAsReq(key,options,cname,sname,from,till,rtime,eTypes,addresses);
}

private KrbAsReq build ( EncryptionKey key ) throws KrbException , IOException { int [ ] eTypes ; if ( password != null ) { eTypes = EType . getDefaults ( "default_tkt_enctypes" ) ; } else { EncryptionKey [ ] ks = Krb5Util . keysFromJavaxKeyTab ( ktab , cname ) ; eTypes = EType . getDefaults ( "default_tkt_enctypes" , ks ) ; for ( EncryptionKey k : ks ) k . destroy ( ) ; } return new KrbAsReq ( key , options , cname , sname , from , till , rtime , eTypes , addresses ) ; }
build a krbasreq object from all info fed above . normally this method will be called twice : initial as - req and second with pakey
