private boolean checkCurrentKeyAge() throws NumberFormatException {
  long currentTokenKeyTS=Long.parseLong(_cachedTokenKeysBundle.getCurrentKeyEntry());
  long now=System.currentTimeMillis();
  long diff=now - currentTokenKeyTS;
  if (diff >= _keyRotationIntervalInMsecs) {
    return false;
  }
  return true;
}

private boolean checkCurrentKeyAge ( ) throws NumberFormatException { long currentTokenKeyTS = Long . parseLong ( _cachedTokenKeysBundle . getCurrentKeyEntry ( ) ) ; long now = System . currentTimeMillis ( ) ; long diff = now - currentTokenKeyTS ; if ( diff >= _keyRotationIntervalInMsecs ) { return false ; } return true ; }
looks at the current key timestamp . if it is older than rotation interval , return false .
