test_class.file: plugin/staticsecurity/staticsecurity/src/test/java/org/geomajas/plugin/staticsecurity/security/LoginAllowedSecurityServiceTest.java
test_class.identifier: LoginAllowedSecurityServiceTest
test_case.body: @Test
  	public void testLoginAllowedService() {
  		LoginAllowedSecurityService service = new LoginAllowedSecurityService();
  		Authentication auth = service.getAuthentication("bla");
  		Assert.assertNotNull(auth);
  		Assert.assertEquals(1, auth.getAuthorizations().length);
  		BaseAuthorization authorization = auth.getAuthorizations()[0];
  		Assert.assertTrue(authorization.isCommandAuthorized(LoginRequest.COMMAND));
  		Assert.assertTrue(authorization.isCommandAuthorized(LogoutRequest.COMMAND));
  		Assert.assertFalse(authorization.isCommandAuthorized("command.staticsecurity.Other"));
  	}
test_case.class_method_signature: LoginAllowedSecurityServiceTest.testLoginAllowedService()
test_case.full_signature: @Test public void testLoginAllowedService()
test_case.identifier: testLoginAllowedService
test_case.invocations: getAuthentication assertNotNull assertEquals getAuthorizations getAuthorizations assertTrue isCommandAuthorized assertTrue isCommandAuthorized assertFalse isCommandAuthorized
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLoginAllowedService()
focal_class.file: plugin/staticsecurity/staticsecurity/src/main/java/org/geomajas/plugin/staticsecurity/security/LoginAllowedSecurityService.java
focal_class.identifier: LoginAllowedSecurityService
focal_class.interfaces: implements SecurityService
focal_class.class_method_signature: LoginAllowedSecurityService.getId()
focal_class.full_signature: @Override public String getId()
focal_class.identifier: getId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: LoginAllowedSecurityService.getAuthentication(String authenticationToken)
focal_class.full_signature: @Override public Authentication getAuthentication(String authenticationToken)
focal_class.identifier: getAuthentication
focal_class.modifiers: @Override public
focal_class.parameters: (String authenticationToken)
focal_class.return: Authentication
focal_class.signature: Authentication getAuthentication(String authenticationToken)
focal_method.body: @Override
  	public Authentication getAuthentication(String authenticationToken) {
  		Authentication auth = new Authentication();
  		auth.setAuthorizations(new BaseAuthorization[]{new LoginAuthorization()});
  		auth.setUserId("anonymous");
  		return auth;
  	}
focal_method.class_method_signature: LoginAllowedSecurityService.getAuthentication(String authenticationToken)
focal_method.full_signature: @Override public Authentication getAuthentication(String authenticationToken)
focal_method.identifier: getAuthentication
focal_method.invocations: setAuthorizations setUserId
focal_method.modifiers: @Override public
focal_method.parameters: (String authenticationToken)
focal_method.return: Authentication
focal_method.signature: Authentication getAuthentication(String authenticationToken)