public void addCachedChallenge ( HttpUrl url , Map < String , String > challenge ) { if ( url == null || challenge == null ) { return ; } String authority = getAuthority ( url ) ; authority = authority . toLowerCase ( Locale . ENGLISH ) ; cachedChallenges . put ( authority , challenge ) ; }
Uses authority to cache challenge .