IntegratedSecurityService implements SecurityService { @Override public Object postProcess(final String regionPath, final Object key, final Object value, final boolean valueIsSerialized) { return postProcess(null, regionPath, key, value, valueIsSerialized); } IntegratedSecurityService(SecurityManagerProvider provider, PostProcessor postProcessor); @Override PostProcessor getPostProcessor(); @Override SecurityManager getSecurityManager(); @Override Subject getSubject(); @Override Subject login(final Properties credentials); @Override void logout(); @Override Callable associateWith(final Callable callable); @Override ThreadState bindSubject(final Subject subject); @Override void authorize(Resource resource, Operation operation); @Override void authorize(Resource resource, Operation operation, Target target); @Override void authorize(Resource resource, Operation operation, String target); @Override void authorize(Resource resource, Operation operation, Target target, String key); @Override void authorize(Resource resource, Operation operation, String target, Object key); @Override void authorize(final ResourcePermission context); @Override void authorize(ResourcePermission context, Subject currentUser); @Override void close(); @Override boolean needPostProcess(); @Override Object postProcess(final String regionPath, final Object key, final Object value,
      final boolean valueIsSerialized); @Override Object postProcess(Object principal, final String regionPath, final Object key,
      final Object value, final boolean valueIsSerialized); @Override boolean isIntegratedSecurity(); @Override boolean isClientSecurityRequired(); @Override boolean isPeerSecurityRequired(); static final String CREDENTIALS_SESSION_ATTRIBUTE; }
@Test public void postProcess1_value_shouldReturnSameValue() throws Exception { Object value = new Object(); Object result = this.securityService.postProcess(null, null, value, false); assertThat(result).isNotNull().isSameAs(value); }
@Test public void postProcess1_null_returnsNull() throws Exception { Object result = this.securityService.postProcess(null, null, null, false); assertThat(result).isNull(); }
@Test public void postProcess2_value_shouldReturnSameValue() throws Exception { Object value = new Object(); Object result = this.securityService.postProcess(null, null, null, value, false); assertThat(result).isNotNull().isSameAs(value); }
@Test public void postProcess2_null_returnsNull() throws Exception { Object result = this.securityService.postProcess(null, null, null, null, false); assertThat(result).isNull(); }