/external/apache-http/src/org/apache/http/impl/client/ |
D | BasicCredentialsProvider.java | 35 import org.apache.http.auth.AuthScope; 60 private final HashMap<AuthScope, Credentials> credMap; 67 this.credMap = new HashMap<AuthScope, Credentials>(); in BasicCredentialsProvider() 81 final AuthScope authscope, in setCredentials() 98 final HashMap<AuthScope, Credentials> map, in matchCredentials() argument 99 final AuthScope authscope) { in matchCredentials() 106 AuthScope bestMatch = null; in matchCredentials() 107 for (AuthScope current: map.keySet()) { in matchCredentials() 129 public synchronized Credentials getCredentials(final AuthScope authscope) { in getCredentials()
|
D | DefaultRequestDirector.java | 56 import org.apache.http.auth.AuthScope; 736 AuthScope authScope = this.proxyAuthState.getAuthScope(); in createTunnelToTarget() 1104 AuthScope authScope = new AuthScope( in updateAuthState()
|
/external/libweave/src/privet/ |
D | auth_manager_unittest.cc | 75 UserInfo{AuthScope::kViewer, TestUserId{"234"}}, {}))); in TEST_F() 78 UserInfo{AuthScope::kManager, TestUserId{"257"}}, {}))); in TEST_F() 81 UserInfo{AuthScope::kOwner, TestUserId{"456"}}, {}))); in TEST_F() 86 UserInfo{AuthScope::kUser, TestUserId{"345"}}, {}))); in TEST_F() 91 UserInfo{AuthScope::kViewer, TestUserId{"555"}}, {}), in TEST_F() 93 UserInfo{AuthScope::kViewer, TestUserId{"555"}}, {})); in TEST_F() 98 UserInfo{AuthScope::kViewer, in TEST_F() 102 UserInfo{AuthScope::kViewer, in TEST_F() 109 UserInfo{AuthScope::kViewer, in TEST_F() 113 UserInfo{AuthScope::kViewer, in TEST_F() [all …]
|
D | privet_types.cc | 58 const EnumToStringMap<AuthScope>::Map kAuthScopeMap[] = { 59 {AuthScope::kNone, "none"}, 60 {AuthScope::kViewer, "viewer"}, 61 {AuthScope::kUser, "user"}, 62 {AuthScope::kManager, "manager"}, 63 {AuthScope::kOwner, "owner"}, 100 LIBWEAVE_EXPORT EnumToStringMap<AuthScope>::EnumToStringMap() in EnumToStringMap()
|
D | security_manager_unittest.cc | 122 AuthScope scope; in PairAndAuthenticate() 125 auth_code_base64, AuthScope::kOwner, in PairAndAuthenticate() 127 EXPECT_EQ(AuthScope::kOwner, scope); in PairAndAuthenticate() 132 EXPECT_EQ(AuthScope::kOwner, info.scope()); in PairAndAuthenticate() 156 AuthScope scopes[] = { in TEST_F() 157 AuthScope::kViewer, AuthScope::kUser, AuthScope::kManager, in TEST_F() 158 AuthScope::kOwner, in TEST_F() 161 const AuthScope requested_scope = scopes[i % arraysize(scopes)]; in TEST_F() 163 AuthScope scope; in TEST_F()
|
D | security_manager.h | 64 AuthScope desired_scope, 66 AuthScope* access_token_scope, 105 AuthScope desired_scope, 107 AuthScope* access_token_scope, 111 AuthScope desired_scope, 113 AuthScope* access_token_scope,
|
D | privet_types.h | 59 explicit UserInfo(AuthScope scope = AuthScope::kNone, 61 : scope_{scope}, id_{scope == AuthScope::kNone ? UserAppId{} : id} {} 62 AuthScope scope() const { return scope_; } in scope() 66 AuthScope scope_;
|
D | privet_handler.cc | 242 AuthScope anonymous_max_scope) { in CreateInfoAuthSection() 296 AuthScope GetAnonymousMaxScope(const CloudDelegate& cloud, in GetAnonymousMaxScope() 299 return AuthScope::kNone; in GetAnonymousMaxScope() 384 AddHandler("/privet/info", &PrivetHandler::HandleInfo, AuthScope::kNone); in PrivetHandler() 386 AuthScope::kNone); in PrivetHandler() 388 AuthScope::kNone); in PrivetHandler() 390 AuthScope::kNone); in PrivetHandler() 393 AuthScope::kNone); in PrivetHandler() 395 &PrivetHandler::HandleAccessControlClaim, AuthScope::kOwner); in PrivetHandler() 398 AuthScope::kOwner); in PrivetHandler() [all …]
|
D | auth_manager.cc | 245 UwMacaroonCaveatScopeType ToMacaroonScope(AuthScope scope) { in ToMacaroonScope() 247 case AuthScope::kViewer: in ToMacaroonScope() 249 case AuthScope::kUser: in ToMacaroonScope() 251 case AuthScope::kManager: in ToMacaroonScope() 253 case AuthScope::kOwner: in ToMacaroonScope() 261 AuthScope FromMacaroonScope(uint32_t scope) { in FromMacaroonScope() 263 return AuthScope::kOwner; in FromMacaroonScope() 265 return AuthScope::kManager; in FromMacaroonScope() 267 return AuthScope::kUser; in FromMacaroonScope() 269 return AuthScope::kViewer; in FromMacaroonScope() [all …]
|
D | cloud_delegate.cc | 102 AuthScope GetAnonymousMaxScope() const override { in GetAnonymousMaxScope() 167 CHECK(user_info.scope() != AuthScope::kNone); in AddCommand() 192 CHECK(user_info.scope() != AuthScope::kNone); in GetCommand() 203 CHECK(user_info.scope() != AuthScope::kNone); in CancelCommand() 213 CHECK(user_info.scope() != AuthScope::kNone); in ListCommands() 297 if (user_info.scope() < AuthScope::kManager) { in GetCommandInternal() 315 CHECK(user_info.scope() != AuthScope::kNone); in CanAccessCommand() 318 if (user_info.scope() == AuthScope::kManager || in CanAccessCommand()
|
D | mock_delegates.h | 73 AuthScope, 75 AuthScope*, 101 SetArgPointee<4>(AuthScope::kViewer), in MockSecurityDelegate() 112 AuthScope::kViewer, in MockSecurityDelegate() 183 MOCK_CONST_METHOD0(GetAnonymousMaxScope, AuthScope()); 219 .WillRepeatedly(Return(AuthScope::kUser)); in MockCloudDelegate()
|
D | security_manager.cc | 90 AuthScope desired_scope, in CreateAccessTokenImpl() 92 AuthScope* access_token_scope, in CreateAccessTokenImpl() 117 AuthScope desired_scope, in CreateAccessTokenImpl() 119 AuthScope* access_token_scope, in CreateAccessTokenImpl() 158 AuthScope desired_scope, in CreateAccessToken() 160 AuthScope* access_token_scope, in CreateAccessToken() 435 return GetSettings().local_anonymous_access_role != AuthScope::kNone; in IsAnonymousAuthSupported()
|
D | security_delegate.h | 27 AuthScope desired_scope, 29 AuthScope* granted_scope,
|
D | privet_handler.h | 75 void AddHandler(const std::string& path, ApiHandler handler, AuthScope scope); 80 AuthScope scope); 150 AuthScope scope;
|
D | privet_handler_unittest.cc | 408 SetArgPointee<4>(AuthScope::kOwner), in TEST_F() 428 SetArgPointee<4>(AuthScope::kUser), in TEST_F() 448 SetArgPointee<4>(AuthScope::kManager), in TEST_F() 468 SetArgPointee<4>(AuthScope::kUser), in TEST_F() 487 SetArgPointee<1>(UserInfo{AuthScope::kOwner, TestUserId{"1"}}), in SetUp() 662 SetArgPointee<1>(UserInfo{AuthScope::kManager, TestUserId{"1"}}), in TEST_F()
|
D | cloud_delegate.h | 82 virtual AuthScope GetAnonymousMaxScope() const = 0;
|
D | auth_manager.h | 64 AuthScope* access_token_scope,
|
/external/apache-http/src/org/apache/http/auth/ |
D | AuthScope.java | 52 public class AuthScope { class 80 public static final AuthScope ANY = new AuthScope(ANY_HOST, ANY_PORT, ANY_REALM, ANY_SCHEME); 111 public AuthScope(final String host, int port, in AuthScope() method in AuthScope 134 public AuthScope(final String host, int port, final String realm) { in AuthScope() method in AuthScope 149 public AuthScope(final String host, int port) { in AuthScope() method in AuthScope 156 public AuthScope(final AuthScope authscope) { in AuthScope() method in AuthScope 202 public int match(final AuthScope that) { in match() 246 if (!(o instanceof AuthScope)) { in equals() 249 AuthScope that = (AuthScope) o; in equals()
|
D | AuthState.java | 53 private AuthScope authScope; 127 public AuthScope getAuthScope() { in getAuthScope() 136 public void setAuthScope(final AuthScope authScope) { in setAuthScope()
|
/external/apache-http/src/org/apache/http/client/ |
D | CredentialsProvider.java | 33 import org.apache.http.auth.AuthScope; 60 void setCredentials(AuthScope authscope, Credentials credentials); in setCredentials() 70 Credentials getCredentials(AuthScope authscope); in getCredentials()
|
/external/libweave/src/ |
D | config_unittest.cc | 79 EXPECT_EQ(AuthScope::kViewer, GetSettings().local_anonymous_access_role); in TEST_F() 176 EXPECT_EQ(AuthScope::kUser, GetSettings().local_anonymous_access_role); in TEST_F() 218 change.set_local_anonymous_access_role(AuthScope::kViewer); in TEST_F() 219 EXPECT_EQ(AuthScope::kViewer, GetSettings().local_anonymous_access_role); in TEST_F() 221 change.set_local_anonymous_access_role(AuthScope::kNone); in TEST_F() 222 EXPECT_EQ(AuthScope::kNone, GetSettings().local_anonymous_access_role); in TEST_F() 224 change.set_local_anonymous_access_role(AuthScope::kUser); in TEST_F() 225 EXPECT_EQ(AuthScope::kUser, GetSettings().local_anonymous_access_role); in TEST_F()
|
D | base_api_handler_unittest.cc | 193 EXPECT_EQ(AuthScope::kNone, settings.local_anonymous_access_role); in TEST_F() 214 EXPECT_EQ(AuthScope::kUser, settings.local_anonymous_access_role); in TEST_F() 227 change.set_local_anonymous_access_role(AuthScope::kViewer); in TEST_F()
|
D | base_api_handler.cc | 143 AuthScope auth_scope{AuthScope::kNone}; in UpdateBaseConfiguration()
|
D | config.cc | 75 result.local_anonymous_access_role = AuthScope::kViewer; in CreateDefaultSettings() 210 AuthScope scope{AuthScope::kNone}; in LoadState()
|
/external/libweave/include/weave/ |
D | settings.h | 16 enum class AuthScope { enum 49 AuthScope local_anonymous_access_role{AuthScope::kViewer};
|