Interface Authenticator

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
PasswordAuthenticator

public interface Authenticator extends AutoCloseable

認證器介面

定義取得認證令牌的標準方法。 實作類別可以使用不同的認證機制(如 OAuth2、Basic Auth 等)。

  • Method Summary

    Modifier and Type
    Method
    Description
    取得認證令牌

    Methods inherited from interface AutoCloseable

    close
  • Method Details

    • acquireToken

      String acquireToken()
      取得認證令牌
      Returns:
      認證令牌字串