Searched refs:REALM (Results 1 - 25 of 285) sorted by relevance

1234567891011>>

/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/cts/api/fields/
H A DResourceSetTokenField.java31 public static final String REALM = "realm"; field in class:ResourceSetTokenField
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/cts/api/fields/
H A DResourceSetTokenField.java31 public static final String REALM = "realm"; field in class:ResourceSetTokenField
H A DSessionTokenField.java28 REALM("clientDomain", CoreTokenField.STRING_ELEVEN), enum constant in enum:SessionTokenField
/forgerock/openam-v13/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/indextree/
H A DIndexTreeServiceImplTest.java44 private static final String REALM = "/test-realm"; field in class:IndexTreeServiceImplTest
98 when(dnMapper.orgNameToDN(REALM)).thenReturn(REALM_DN);
105 Set<String> results = treeService.searchTree("http://www.test.com", REALM);
108 verify(dnMapper).orgNameToDN(REALM);
120 results = treeService.searchTree("http://www.example.com/home", REALM);
144 when(dnMapper.orgNameToDN(REALM)).thenReturn(REALM_DN);
151 Set<String> results = treeService.searchTree("http://www.test.com", REALM);
154 verify(dnMapper).orgNameToDN(REALM);
165 results = treeService.searchTree("http://www.test.com", REALM);
214 when(dnMapper.orgNameToDN(REALM))
[all...]
/forgerock/openam/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/indextree/
H A DIndexTreeServiceImplTest.java44 private static final String REALM = "/test-realm"; field in class:IndexTreeServiceImplTest
98 when(dnMapper.orgNameToDN(REALM)).thenReturn(REALM_DN);
105 Set<String> results = treeService.searchTree("http://www.test.com", REALM);
108 verify(dnMapper).orgNameToDN(REALM);
120 results = treeService.searchTree("http://www.example.com/home", REALM);
144 when(dnMapper.orgNameToDN(REALM)).thenReturn(REALM_DN);
151 Set<String> results = treeService.searchTree("http://www.test.com", REALM);
154 verify(dnMapper).orgNameToDN(REALM);
165 results = treeService.searchTree("http://www.test.com", REALM);
214 when(dnMapper.orgNameToDN(REALM))
[all...]
/forgerock/openam/openam-oauth2/src/test/java/org/forgerock/openam/oauth2/
H A DOpenAMClientRegistrationStoreTest.java58 private static final String REALM = "realm"; field in class:OpenAMClientRegistrationStoreTest
73 given(realmNormaliser.normalise(REALM)).willReturn(REALM);
124 OpenIdConnectClientRegistration registration = store.get(AGENT_NAME, REALM, null);
134 OpenIdConnectClientRegistration registration = store.get(AGENT_NAME, REALM, null);
144 OpenIdConnectClientRegistration registration = store.get(AGENT_NAME, REALM, null);
163 store.get(AGENT_NAME, REALM, null);
178 given(identityRepositoryFactory.create(REALM, ssoToken))
184 given(oAuth2Request.getParameter(OAuth2Constants.Custom.REALM)).willReturn(REALM);
[all...]
/forgerock/openam-v13/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/saml2/
H A DRestSTSInstanceStateProviderTest.java65 private static final String REALM = "bobo"; field in class:RestSTSInstanceStateProviderTest
96 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
97 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
103 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
104 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config
105 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
107 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
108 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
111 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
H A DSoapSTSInstanceStateProviderTest.java67 private static final String REALM = "bobo"; field in class:SoapSTSInstanceStateProviderTest
99 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
100 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
107 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config
108 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
110 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
111 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
114 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
/forgerock/openam-v13/openam-federation/OpenFM/src/test/java/com/sun/identity/policy/
H A DPolicyWildcardTest.java51 private static final String REALM = "/"; field in class:PolicyWildcardTest
89 testUser = Util.createATestUser(adminToken, TEST_USER_NAME, REALM);
90 testAdminUser = Util.createATestUser(adminToken, TEST_ADMIN_USER_NAME, REALM);
91 testAdminGroup = Util.createATestGroup(adminToken, TEST_ADMIN_GRP_NAME, REALM);
95 userSSOToken = Util.datastoreLogin(TEST_USER_NAME, TEST_USER_NAME, REALM);
96 adminUserSSOToken = Util.datastoreLogin(TEST_ADMIN_USER_NAME, TEST_ADMIN_USER_NAME, REALM);
98 PolicyManager pm = new PolicyManager(adminToken, REALM);
124 PolicyManager pm = new PolicyManager(adminToken, REALM);
128 AMIdentityRepository amir = new AMIdentityRepository(adminToken, REALM);
/forgerock/openam/openam-federation/OpenFM/src/test/java/com/sun/identity/policy/
H A DPolicyWildcardTest.java51 private static final String REALM = "/"; field in class:PolicyWildcardTest
89 testUser = Util.createATestUser(adminToken, TEST_USER_NAME, REALM);
90 testAdminUser = Util.createATestUser(adminToken, TEST_ADMIN_USER_NAME, REALM);
91 testAdminGroup = Util.createATestGroup(adminToken, TEST_ADMIN_GRP_NAME, REALM);
95 userSSOToken = Util.datastoreLogin(TEST_USER_NAME, TEST_USER_NAME, REALM);
96 adminUserSSOToken = Util.datastoreLogin(TEST_ADMIN_USER_NAME, TEST_ADMIN_USER_NAME, REALM);
98 PolicyManager pm = new PolicyManager(adminToken, REALM);
124 PolicyManager pm = new PolicyManager(adminToken, REALM);
128 AMIdentityRepository amir = new AMIdentityRepository(adminToken, REALM);
/forgerock/openam/openam-sts/openam-token-service-sts/src/test/java/org/forgerock/openam/sts/tokengeneration/saml2/
H A DRestSTSInstanceStateProviderTest.java65 private static final String REALM = "bobo"; field in class:RestSTSInstanceStateProviderTest
96 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
97 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
103 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
104 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config
105 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
107 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
108 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
111 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
H A DSoapSTSInstanceStateProviderTest.java67 private static final String REALM = "bobo"; field in class:SoapSTSInstanceStateProviderTest
99 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
100 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
106 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(instanceConfig);
107 provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM); //initializes the cache with the mocked config
108 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
110 when(mockConfigStore.getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM)).thenReturn(null);
111 assertEquals(provider.getSTSInstanceState(DEPLOYMENT_URL_ELEMENT, REALM).getConfig(), instanceConfig);
114 verify(mockConfigStore, times(1)).getSTSInstanceConfig(DEPLOYMENT_URL_ELEMENT, REALM);
/forgerock/openam-v13/openam-uma/src/test/java/org/forgerock/openam/uma/
H A DPendingRequestsServiceTest.java65 private static final String REALM = "REALM"; field in class:PendingRequestsServiceTest
96 given(coreWrapper.getIdentity(RESOURCE_OWNER_ID, REALM)).willReturn(resourceOwnerIdentity);
110 REQUESTING_PARTY_ID, REALM, Collections.singleton(SCOPE));
120 assertThat(pendingRequest.getRealm()).isEqualTo(REALM);
131 mockPendingRequestCreationEmailTemplate(RESOURCE_OWNER_ID, REALM);
135 REQUESTING_PARTY_ID, REALM, Collections.singleton(SCOPE));
138 verify(emailService).email(REALM, RESOURCE_OWNER_ID, "CREATION_SUBJECT",
159 service.queryPendingRequests(RESOURCE_OWNER_ID, REALM);
166 + REALM_FIELD + " eq \"" + REALM
[all...]
/forgerock/openam/openam-uma/src/test/java/org/forgerock/openam/uma/
H A DPendingClientSdkSessionRequestsServiceTest.java65 private static final String REALM = "REALM"; field in class:PendingClientSdkSessionRequestsServiceTest
96 given(coreWrapper.getIdentity(RESOURCE_OWNER_ID, REALM)).willReturn(resourceOwnerIdentity);
110 REQUESTING_PARTY_ID, REALM, Collections.singleton(SCOPE));
120 assertThat(pendingRequest.getRealm()).isEqualTo(REALM);
131 mockPendingRequestCreationEmailTemplate(RESOURCE_OWNER_ID, REALM);
135 REQUESTING_PARTY_ID, REALM, Collections.singleton(SCOPE));
138 verify(emailService).email(REALM, RESOURCE_OWNER_ID, "CREATION_SUBJECT",
159 service.queryPendingRequests(RESOURCE_OWNER_ID, REALM);
166 + REALM_FIELD + " eq \"" + REALM
[all...]
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/agent/
H A DTokenRestrictionResolverTest.java50 private final static String REALM = "realm"; field in class:TokenRestrictionResolverTest
81 PROVIDER_ID + "?Realm=" + REALM,
94 PROVIDER_ID + "?Realm=" + REALM,
108 PROVIDER_ID + "?Realm=" + REALM,
124 PROVIDER_ID + "?Realm=" + REALM,
138 PROVIDER_ID + "?Realm=" + REALM,
154 PROVIDER_ID + "?Realm=" + REALM,
170 PROVIDER_ID + "?Realm=" + REALM,
186 PROVIDER_ID + "?Realm=" + REALM,
204 PROVIDER_ID + "?Realm=" + REALM,
[all...]
/forgerock/openam-v13/openam-oauth2-common/oauth2-restlet/src/main/java/org/forgerock/oauth2/restlet/
H A DOpenAMClientAuthenticationFailureFactory.java57 String realm = request.<String>getParameter(OAuth2Constants.Custom.REALM);
59 realm = realmNormaliser.normalise(request.<String>getParameter(OAuth2Constants.Custom.REALM));
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/restlet/
H A DOpenAMClientAuthenticationFailureFactory.java57 String realm = request.<String>getParameter(OAuth2Constants.Custom.REALM);
59 realm = realmNormaliser.normalise(request.<String>getParameter(OAuth2Constants.Custom.REALM));
/forgerock/openam-v13/openam-federation/OpenFM/src/test/java/com/sun/identity/rest/
H A DRestTest.java75 private static final String REALM = "/"; field in class:RestTest
94 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
113 user = IdRepoUtils.createAgent(REALM, AGENT_NAME);
114 SSOToken ssoToken = AuthUtils.authenticate(REALM, AGENT_NAME,
147 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
150 IdRepoUtils.deleteIdentity(REALM, user);
160 params.add("realm", REALM);
180 params.add("realm", REALM);
222 params.add("realm", REALM);
253 params.add("realm", REALM);
[all...]
H A DMultipleResourceRestTest.java72 private static final String REALM = "/"; field in class:MultipleResourceRestTest
89 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
131 user = IdRepoUtils.createUser(REALM, "MultipleResourceRestTestUser");
143 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
147 IdRepoUtils.deleteIdentity(REALM, user);
156 params.add("realm", REALM);
191 params.add("realm", REALM);
H A DRestPermissionTest.java73 private static final String REALM = "/"; field in class:RestPermissionTest
92 group = IdRepoUtils.createGroup(REALM, GROUP_NAME);
93 user = IdRepoUtils.createUser(REALM, USER_NAME);
123 SSOToken ssoToken = AuthUtils.authenticate(REALM, USER_NAME,
145 IdRepoUtils.deleteIdentity(REALM, group);
146 IdRepoUtils.deleteIdentity(REALM, user);
231 params.add("realm", REALM);
244 adminToken, REALM);
249 Collections.EMPTY_SET, REALM);
/forgerock/openam/openam-federation/OpenFM/src/test/java/com/sun/identity/rest/
H A DRestTest.java75 private static final String REALM = "/"; field in class:RestTest
94 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
113 user = IdRepoUtils.createAgent(REALM, AGENT_NAME);
114 SSOToken ssoToken = AuthUtils.authenticate(REALM, AGENT_NAME,
147 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
150 IdRepoUtils.deleteIdentity(REALM, user);
160 params.add("realm", REALM);
180 params.add("realm", REALM);
222 params.add("realm", REALM);
253 params.add("realm", REALM);
[all...]
H A DMultipleResourceRestTest.java72 private static final String REALM = "/"; field in class:MultipleResourceRestTest
89 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
131 user = IdRepoUtils.createUser(REALM, "MultipleResourceRestTestUser");
143 PrivilegeManager pm = PrivilegeManager.getInstance(REALM,
147 IdRepoUtils.deleteIdentity(REALM, user);
156 params.add("realm", REALM);
191 params.add("realm", REALM);
H A DRestPermissionTest.java73 private static final String REALM = "/"; field in class:RestPermissionTest
92 group = IdRepoUtils.createGroup(REALM, GROUP_NAME);
93 user = IdRepoUtils.createUser(REALM, USER_NAME);
123 SSOToken ssoToken = AuthUtils.authenticate(REALM, USER_NAME,
145 IdRepoUtils.deleteIdentity(REALM, group);
146 IdRepoUtils.deleteIdentity(REALM, user);
231 params.add("realm", REALM);
244 adminToken, REALM);
249 Collections.EMPTY_SET, REALM);
/forgerock/openam/openam-restlet/src/main/java/org/forgerock/openam/rest/service/
H A DRestletRealmRouter.java43 public static final String REALM = "realm"; field in class:RestletRealmRouter
93 request.getAttributes().put(REALM, realm.asPath());
96 httpRequest.setAttribute(REALM, realm.asPath());
120 String realm = request.getResourceRef().getQueryAsForm().getFirstValue(REALM);
143 String realm = (String) request.getAttributes().get(REALM);
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/dpro/session/
H A DPartialSessionFactoryTest.java40 private static final String REALM = "/"; field in class:PartialSessionFactoryTest
77 ImmutableMap.<CoreTokenField, Object>of(SessionTokenField.REALM.getField(), REALM));
83 assertThat(partialSession.getRealm()).isEqualTo(REALM);
143 .put(SessionTokenField.REALM.getField(), REALM)
157 assertThat(partialSession.getRealm()).isEqualTo(REALM);

Completed in 954 milliseconds

1234567891011>>