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

public Class KeyExpirationTime

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

packet giving time after creation at which the key expires.

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)

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)