@Test void application() { SecurityConfig.Application app = config.application(); assertThat(app.user(), is("admin")); assertThat(app.password(), is("se(r@t")); assertThat(app.tokenShouldBeRefreshedDuration(), is(Duration.parse("PT1M15S"))); assertThat(app.allowOtherAuthentication(), is(false)); assertThat(app.allowAnonymous(), is(true)); SecurityConfig.Application.Realm realm = app.realm(); assertThat(realm.urlPattern(), is("/{realm}/{service}/some/url")); assertThat(realm.requestParamName(), is("realm")); assertThat(realm.headerName(), is("X-REALM")); assertThat(realm.refreshHeaderName(), is("X-REFRESH-TOKEN")); }
@Override public Application application() { return application; }
SecurityConfigImpl implements SecurityConfig { @Override public Application application() { return application; } }
SecurityConfigImpl implements SecurityConfig { @Override public Application application() { return application; }  }
SecurityConfigImpl implements SecurityConfig { @Override public Application application() { return application; }  @Override List<String> applyUrls(); @Override List<String> ignoreUrls(); @Override SecurityFilter securityFilter(); @Override boolean isSkipRefererCheck(); @Override Redirect redirect(); @Override IdentityProvider identityProvider(); @Override Boolean useReferAsRedirectUri(); @Override String publicKeysStorage(); @Override String tokenStorage(); @Override StorageImpl storage(); @Override TokenValidation tokenValidation(); @Override Stub stub(); @Override HttpClient httpClient(); @Override Application application(); @Override String errorDescriptionLink(); List<String> getApplyUrls(); void setApplyUrls(List<String> applyUrls); List<String> getIgnoreUrls(); void setIgnoreUrls(List<String> ignoreUrls); void setSecurityFilter(SecurityFilterImpl securityFilter); void setSkipRefererCheck(boolean skipRefererCheck); void setRedirect(RedirectImpl redirect); IdentityProviderImpl getIdentityProvider(); void setIdentityProvider(IdentityProviderImpl identityProvider); Boolean getUseReferAsRedirectUri(); void setUseReferAsRedirectUri(Boolean useReferAsRedirectUri); String getPublicKeysStorage(); void setPublicKeysStorage(String publicKeysStorage); String getTokenStorage(); void setTokenStorage(String tokenStorage); void setStorage(StorageImpl storage); void setTokenValidation(TokenValidationImpl tokenValidation); void setStub(StubImpl stub); void setHttpClient(HttpClientImpl httpClient); void setApplication(ApplicationImpl application); void setErrorDescriptionLink(String errorDescriptionLink); @Override String toString(); }
SecurityConfigImpl implements SecurityConfig { @Override public Application application() { return application; }  @Override List<String> applyUrls(); @Override List<String> ignoreUrls(); @Override SecurityFilter securityFilter(); @Override boolean isSkipRefererCheck(); @Override Redirect redirect(); @Override IdentityProvider identityProvider(); @Override Boolean useReferAsRedirectUri(); @Override String publicKeysStorage(); @Override String tokenStorage(); @Override StorageImpl storage(); @Override TokenValidation tokenValidation(); @Override Stub stub(); @Override HttpClient httpClient(); @Override Application application(); @Override String errorDescriptionLink(); List<String> getApplyUrls(); void setApplyUrls(List<String> applyUrls); List<String> getIgnoreUrls(); void setIgnoreUrls(List<String> ignoreUrls); void setSecurityFilter(SecurityFilterImpl securityFilter); void setSkipRefererCheck(boolean skipRefererCheck); void setRedirect(RedirectImpl redirect); IdentityProviderImpl getIdentityProvider(); void setIdentityProvider(IdentityProviderImpl identityProvider); Boolean getUseReferAsRedirectUri(); void setUseReferAsRedirectUri(Boolean useReferAsRedirectUri); String getPublicKeysStorage(); void setPublicKeysStorage(String publicKeysStorage); String getTokenStorage(); void setTokenStorage(String tokenStorage); void setStorage(StorageImpl storage); void setTokenValidation(TokenValidationImpl tokenValidation); void setStub(StubImpl stub); void setHttpClient(HttpClientImpl httpClient); void setApplication(ApplicationImpl application); void setErrorDescriptionLink(String errorDescriptionLink); @Override String toString();  }