boolean isLocalAuthenticationValid(){
  if (localPrivateKey != null) {
    try {
      localPrivateKey.getAlgorithm();
    }
 catch (    Exception e) {
      invalidate();
      return false;
    }
  }
  return true;
}

boolean isLocalAuthenticationValid ( ) { if ( localPrivateKey != null ) { try { localPrivateKey . getAlgorithm ( ) ; } catch ( Exception e ) { invalidate ( ) ; return false ; } } return true ; }
check if the authentication used when establishing this session is still valid . returns true if no authentication was used
