Ejemplo n.º 1
0
        protected DnssecPrivateKey(DnssecAlgorithm algorithm, DnssecPrivateKeyType keyType)
        {
            _algorithm = algorithm;
            _keyType   = keyType;

            _state          = DnssecPrivateKeyState.Generated;
            _stateChangedOn = DateTime.UtcNow;
        }
Ejemplo n.º 2
0
        protected DnssecPrivateKey(DnssecAlgorithm algorithm, BinaryReader bR)
        {
            _algorithm = algorithm;
            _keyType   = (DnssecPrivateKeyType)bR.ReadByte();

            _state          = (DnssecPrivateKeyState)bR.ReadByte();
            _stateChangedOn = DateTime.UnixEpoch.AddSeconds(bR.ReadInt64());
            _isRetiring     = bR.ReadBoolean();
            _rolloverDays   = bR.ReadUInt16();

            ReadPrivateKeyFrom(bR);
        }