Lines Matching defs:old
120 * This is used for duplicating a new principal from an old one
122 public Principal(Principal old) {
123 /* Copy old principal to new one */
125 copyPrincipal(old, this);
148 public Principal(Kadmin session, Principal old) {
149 this(old);
164 * Copy relevant fields from old principal, overriding as necessary
166 public static void copyPrincipal(Principal old, Principal curr) {
169 curr.PrExpireTime = new Date(old.PrExpireTime.getTime());
170 curr.Policy = new String(old.Policy);
171 curr.EncTypes = new String(old.EncTypes);
173 if (old.PwExpireTime == null)
176 curr.PwExpireTime = new Date(old.PwExpireTime.getTime());
177 curr.MaxLife = new Integer(old.MaxLife.intValue());
178 curr.MaxRenew = new Integer(old.MaxRenew.intValue());
184 curr.Comments = new String(old.Comments);
185 curr.Kvno = new Integer(old.Kvno.intValue());
186 curr.Mkvno = new Integer(old.Mkvno.intValue());
187 curr.flags = new Flags(old.flags.getBits());