@ConfigProperty public void setAlias(String alias) { this.alias = alias; } }
@Override @Configurable.Nested public QueryFilterConfig getQueryFilterConfig() { return queryFilterConfig; }
public class ClasspathMessageSource extends ResourceMessageSource implements MessageSource,PostCreateBean { protected @Inject AppConfig config; @Override public void postCreate(BeanFactory factory) throws Throwable { AppResources ars = AppResources.get(config); AppResource[] resources = Arrays2.concat(ars.search("messages"), ars.searchAllFiles(new String[]{"messages_*.*"})); super.readFromResources(resources); } }
@ConfigProperty public DefaultSecurityConfig setCrossContext(boolean crossContext) { this.crossContext = crossContext; return this; }
@ConfigProperty public SecurityConfigurator setLoginAction(String path) { this.loginAction = path; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setLoginTokenEnabled(boolean enabled) { this.loginTokenEnabled = enabled; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setDefaultAccessTokenExpires(int defaultExpiresIn) { this.defaultAccessTokenExpires = defaultExpiresIn; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setDefaultRefreshTokenExpires(int seconds) { this.defaultRefreshTokenExpires = seconds; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setDefaultAuthorizationCodeExpires(int seconds) { this.defaultAuthorizationCodeExpires = seconds; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setDefaultLoginSessionExpires(int seconds){ this.defaultLoginSessionExpires = seconds; return this; }
@ConfigProperty @Override public OAuth2ResServerConfigurator setRsaPublicKeyStr(String publicKey) { this.rsaPublicKeyStr = publicKey; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setEnabled(boolean enabled) { this.enabled = enabled; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setAuthorizationCodeEnabled(boolean authorazationCodeEnabled) { this.authorizationCodeEnabled = authorazationCodeEnabled; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setClientCredentialsEnabled(boolean clientCredentialsEnabled) { this.clientCredentialsEnabled = clientCredentialsEnabled; return this; } @ConfigProperty
@ConfigProperty public OAuth2AuthzServerConfigurator setLogoutEndpointPath(String path) { this.logoutEndpointPath = path; return this; }
@ConfigProperty public OAuth2AuthzServerConfigurator setLoginView(String view) { this.loginView = view; return this; }
@ConfigProperty public OAuth2WebAppConfigurator setEnabled(boolean enabled) { this.enabled = enabled; this.oauth2LoginEnabled = enabled; this.oauth2LogoutEnabled = enabled; return this; }
@ConfigProperty public OAuth2WebAppConfigurator setClientSecret(String clientSecret) { this.clientSecret = clientSecret; return this; }
@ConfigProperty public OAuth2WebAppConfigurator setClientLogoutUri(String uri) { this.clientLogoutUri = uri; return this; }
@ConfigProperty public OAuth2WebAppConfigurator setErrorView(String errorView) { this.errorView = errorView; return this; }