private DiscoveryInformation verifyDiscovered(AuthSuccess authResp,DiscoveryInformation discovered) throws DiscoveryException {
  if (authResp == null || authResp.getIdentity() == null) {
    _log.info("Assertion is not about an identifier");
    return null;
  }
  if (authResp.isVersion2())   return verifyDiscovered2(authResp,discovered);
 else   return verifyDiscovered1(authResp,discovered);
}

private DiscoveryInformation verifyDiscovered ( AuthSuccess authResp , DiscoveryInformation discovered ) throws DiscoveryException { if ( authResp == null || authResp . getIdentity ( ) == null ) { _log . info ( "Assertion is not about an identifier" ) ; return null ; } if ( authResp . isVersion2 ( ) ) return verifyDiscovered2 ( authResp , discovered ) ; else return verifyDiscovered1 ( authResp , discovered ) ; }
verifies the dicovery information matches the data received in a authentication response from an openid provider .
