Interface Credential

All Known Implementing Classes:
ClientCredential

public interface Credential

認證憑證介面,定義身份驗證所需的基本資訊。

此介面提供通用的憑證存取方法,可用於各種認證場景, 如使用者登入、OAuth2 客戶端認證等。

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    取得識別碼。
    取得密鑰。
  • Method Details

    • getIdentifier

      String getIdentifier()
      取得識別碼。
      Returns:
      識別碼(如使用者名稱、客戶端 ID 等)
    • getSecret

      String getSecret()
      取得密鑰。
      Returns:
      密鑰(如密碼、客戶端密鑰等)