/** * Creates a wrapper object. * * @param service */ public UserGroupServiceValidationWrapper(GeoServerUserGroupService service) { super(service.getSecurityManager()); this.service = service; }
@Override public GeoServerSecurityManager getSecurityManager() { return delegate.getSecurityManager(); }
public GeoServerSecurityManager getSecurityManager() { return service.getSecurityManager(); }
public HttpDigestUserDetailsServiceWrapper(GeoServerUserGroupService service, Charset charSet) { this.service = service; this.charSet = charSet; manager = service.getSecurityManager(); enc = new GeoServerMultiplexingPasswordEncoder(service.getSecurityManager(), service); try { digest = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { throw new IllegalStateException("No MD5 algorithm available!"); } }
/** * sets the wrapped {@link GeoServerUserGroupService} objects and prepares the {@link * GeoServerUserPasswordEncoder} * * @param service * @throws IOException */ public void setGeoserverUserGroupService(GeoServerUserGroupService service) throws IOException { this.service = service; encoder = new GeoServerMultiplexingPasswordEncoder(service.getSecurityManager(), service); }
/** * @see org.geoserver.security.GeoServerUserGroupStore#initializeFromServer(org.geoserver.security.GeoServerUserGroupService) */ public void initializeFromService(GeoServerUserGroupService service) throws IOException { jdbcService= (JDBCUserGroupService) service; setSecurityManager(service.getSecurityManager()); this.name=jdbcService.getName(); this.passwordEncoderName=service.getPasswordEncoderName(); this.passwordValidatorName=service.getPasswordValidatorName(); this.datasource=jdbcService.datasource; this.ddlProps=jdbcService.ddlProps; this.dmlProps=jdbcService.dmlProps; try { getConnection().commit(); } catch (SQLException e) { throw new IOException(); } }
h.setEnabled(getService().getSecurityManager().checkAuthenticationForAdminRole());
h.setEnabled(getService().getSecurityManager().checkAuthenticationForAdminRole());
h.setEnabled(getService().getSecurityManager().checkAuthenticationForAdminRole());