Changeset b4f331e6 for core


Ignore:
Timestamp:
May 31, 2019 1:17:30 PM (10 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8a4c469
Parents:
6722485
Message:

Router: Fix persistence of blinded privkey and timestamp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/BlindData.java

    r6722485 rb4f331e6  
    11package net.i2p.data;
     2
     3import java.util.Date;
    24
    35import net.i2p.I2PAppContext;
     
    2628    private boolean _secretRequired;
    2729    private boolean _authRequired;
     30    private long _date;
    2831
    2932    /**
     
    9598        if (authKey != null)
    9699            _authRequired = true;
     100        _date = _context.clock().now();
    97101        // defer until needed
    98102        //calculate();
     
    245249    }
    246250
     251    /**
     252     *  @since 0.9.41
     253     */
     254    public void setDate(long date) {
     255        _date = date;
     256    }
     257
     258    /**
     259     *  @return creation date or as overridden by setDate()
     260     *  @since 0.9.41
     261     */
     262    public long getDate() {
     263        return _date;
     264    }
     265
    247266    @Override
    248267    public synchronized String toString() {
     
    272291            buf.append("\n\tDestination     : unknown");
    273292        buf.append("\n\tB32             : ").append(toBase32());
     293        buf.append("\n\tCreated         : ").append((new Date(_date)).toString());
    274294        buf.append(']');
    275295        return buf.toString();
Note: See TracChangeset for help on using the changeset viewer.