Class ResourceServerSecurity.Builder
java.lang.Object
io.leandev.appfuse.security.resourceserver.ResourceServerSecurity.Builder
- Enclosing class:
ResourceServerSecurity
-
Method Summary
Modifier and TypeMethodDescriptionapiKey(boolean enabled, ApiKeyPrincipalLookup lookup, String headerName) 選擇性啟用 API-key 呈遞;啟用但未提供 lookup 時立即失敗。basicAuth(boolean enabled, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint) 選擇性啟用 Basic Auth;使用 reference implementation 提供的互動式 manager 與錯誤方言。org.springframework.security.config.annotation.web.builders.HttpSecurity套用固定機制並回傳同一個 builder;authorization 與具體位址仍由呼叫端決定。sessionFamilies(SessionFamilyProfile profile, RefreshSessionStore store, Clock clock) 每次互動式 Bearer JWT 授權都查詢權威 store;必須與 LoginService 共用組裝。 API key/Basic 沿各自認證與資格政策,可在同一條 chain 同時啟用。
-
Method Details
-
sessionFamilies
public ResourceServerSecurity.Builder sessionFamilies(SessionFamilyProfile profile, RefreshSessionStore store, Clock clock) 每次互動式 Bearer JWT 授權都查詢權威 store;必須與 LoginService 共用組裝。 API key/Basic 沿各自認證與資格政策,可在同一條 chain 同時啟用。 -
apiKey
public ResourceServerSecurity.Builder apiKey(boolean enabled, ApiKeyPrincipalLookup lookup, String headerName) 選擇性啟用 API-key 呈遞;啟用但未提供 lookup 時立即失敗。 -
basicAuth
public ResourceServerSecurity.Builder basicAuth(boolean enabled, org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint) 選擇性啟用 Basic Auth;使用 reference implementation 提供的互動式 manager 與錯誤方言。 -
configure
-