Adding a couple private methods to AccessTokenHandler for testing purposes

Details

Description

To support some test cases being added as part of HDFS-409, a couple private methods need to be added to AccessTokenHandler. One is for setting token lifetime and another is checking if a token has expired.