Ejemplo n.º 1
0
 private BasicExpiringCryptoPolicy(Builder builder)
 {
     keyExpirationMillis                = (long)TimeSpan.FromDays(builder.KeyExpirationDays).TotalMilliseconds;
     revokeCheckMillis                  = (long)TimeSpan.FromMinutes(builder.RevokeCheckMinutes).TotalMilliseconds;
     keyRotationStrategy                = builder.KeyRotationStrategy;
     canCacheSystemKeys                 = builder.CanCacheSystemKeys;
     canCacheIntermediateKeys           = builder.CanCacheIntermediateKeys;
     notifyExpiredSystemKeyOnRead       = builder.NotifyExpiredSystemKeyOnRead;
     notifyExpiredIntermediateKeyOnRead = builder.NotifyExpiredIntermediateKeyOnRead;
 }
Ejemplo n.º 2
0
 public IBuildStep WithRotationStrategy(KeyRotationStrategy rotationStrategy)
 {
     KeyRotationStrategy = rotationStrategy;
     return(this);
 }