Certificate.getExpires

Get the expiration date of the certificate's key. A value of 0 means the certificate never expires.

class Certificate
long
getExpires
()

Return Value

Type: long

the expiration date of the certificate's key or %-1 if unknown.