參照︰HTTP 自訂驗證屬性
通用分頁
屬性 | XML 屬性內容名稱 | 說明 |
|---|---|---|
密碼
| password
| 用於驗證的密碼。 |
使用者名稱
| username
| 用於驗證的使用者名稱。 |
領域
| realm
| 回叫處理常式 Bean 使用的領域名稱。 |
回調處理程式 Bean
| callback-handler-bean
| 實現 javax.security.auth.callback.CallbackHandler 並處理回呼類型 com.capeclear.transport.impl.http.auth.UsernamePasswordCallback 提供使用者名稱和密碼詳細資料以供驗證。
如果您沒有為 http-custom-auth 子元素指定密碼詳細資料,則需要改用回呼處理常式 Bean。範例︰ <http-custom-auth username="me" callback-handler-bean="myCallBackHandlerBean"/> 。如果您沒有為 http-custom-auth 子元素指定使用者名稱和密碼詳細資料,則需要改用回呼處理常式 bean。範例︰ <http-custom-auth callback-handler-bean="myCallBackHandlerBean"/> 。如果您為 http-custom-auth 子元素指定使用者名稱和密碼詳細資料,則不需要回呼處理常式 Bean。範例︰ <http-custom-auth username="me" password="mypassword"/> 。 |
身分驗證器 Bean
| authenticator-bean
| 執行自訂身分驗證的 Spring Bean。 |