getExpiration() method

Syntax

Date getExpiration ()

Returns

the expiry Date; null if the OTP does not expire at all

Usage

Returns the point in time this one-time password expires.

the expiry Date; null if the OTP does not expire at all