Set the number of seconds a key is valid for after the time of its creation.
A value of zero means the key never expires.
Namespace: Org.BouncyCastle.Bcpg.OpenPgpAssembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0
Syntax
C# |
---|
public void SetKeyExpirationTime(
bool isCritical,
long seconds
) |
Visual Basic |
---|
Public Sub SetKeyExpirationTime ( _
isCritical As Boolean, _
seconds As Long _
) |
Visual C++ |
---|
public:
void SetKeyExpirationTime(
bool isCritical,
long long seconds
) |
Parameters
- isCritical
- Type: System..::..Boolean
True, if should be treated as critical, false otherwise.
- seconds
- Type: System..::..Int64
The number of seconds the key is valid, or zero if no expiry.
See Also