Top Description Fields Constructors Methods
org.bouncycastle.bcpg.sig

public Class KeyExpirationTime

extends SignatureSubpacket
Class Inheritance
Imports
org.bouncycastle.bcpg.SignatureSubpacket, .SignatureSubpacketTags

Signature Subpacket containing the number of seconds after the key's creation date, after which the key expires. The special value of 0 means that the key never expires.
See Also
RFC4880 - Key Expiration Time, RFC9580 - Key Expiration Time

Field Summary

Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
data

Constructor Summary

AccessConstructor and Description
public
KeyExpirationTime(boolean critical, boolean isLongLength, byte[] data)

public
KeyExpirationTime(boolean critical, long seconds)

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

second count for key validity.
getTime
()

Return the number of seconds after creation time a key is valid for.

protected static byte[]
timeToBytes(long t)
Deprecated Will be removed

Inherited from org.bouncycastle.bcpg.SignatureSubpacket:
encodeequalsgetDatagetTypehashCodeisCriticalisLongLength

Constructor Detail

KeyExpirationTimeback to summary
public KeyExpirationTime(boolean critical, boolean isLongLength, byte[] data)
KeyExpirationTimeback to summary
public KeyExpirationTime(boolean critical, long seconds)

Method Detail

getTimeback to summary
public long getTime()

Return the number of seconds after creation time a key is valid for.

Returns:long

second count for key validity.

timeToBytesback to summary
protected static byte[] timeToBytes(long t)

Deprecated

Will be removed