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 與具體位址仍由呼叫端決定。
-
Method Details
-
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
-