public boolean isValid(){
  SSLSessionContext context=sessionContext;
  if (isValid && context != null && context.getSessionTimeout() != 0 && getCreationTime() + (context.getSessionTimeout() * 1000) < System.currentTimeMillis()) {
    isValid=false;
  }
  return isValid;
}

public boolean isValid ( ) { SSLSessionContext context = sessionContext ; if ( isValid && context != null && context . getSessionTimeout ( ) != 0 && getCreationTime ( ) + ( context . getSessionTimeout ( ) * 1000 ) < System . currentTimeMillis ( ) ) { isValid = false ; } return isValid ; }
returns a boolean flag signaling whether a ssl session is valid and available for resuming or joining or not .
