Home | History | Annotate | Download | only in client

Lines Matching full:authscope

35 import org.apache.http.auth.AuthScope;
55 private final HashMap<AuthScope, Credentials> credMap;
62 this.credMap = new HashMap<AuthScope, Credentials>();
69 * @param authscope the {@link AuthScope authentication scope}
73 * @see #getCredentials(AuthScope)
76 final AuthScope authscope,
78 if (authscope == null) {
81 credMap.put(authscope, credentials);
88 * @param authscope the {@link AuthScope authentication scope}
93 final HashMap<AuthScope, Credentials> map,
94 final AuthScope authscope) {
96 Credentials creds = map.get(authscope);
101 AuthScope bestMatch = null;
102 for (AuthScope current: map.keySet()) {
103 int factor = authscope.match(current);
119 * @param authscope the {@link AuthScope authentication scope}
122 * @see #setCredentials(AuthScope, Credentials)
124 public synchronized Credentials getCredentials(final AuthScope authscope) {
125 if (authscope == null) {
128 return matchCredentials(this.credMap, authscope);