クラス GitHubAuthentication
java.lang.ObjectSE
org.springframework.vault.authentication.GitHubAuthentication
- 実装済みのインターフェース一覧:
AuthenticationStepsFactory,ClientAuthentication
public class GitHubAuthentication
extends ObjectSE
implements ClientAuthentication, AuthenticationStepsFactory
GitHub の認証方法は、GitHub 個人アクセストークンを使用して Vault で認証するために使用できます。
- 導入:
- 3.2
- 作成者:
- Nanne Baars, Mark Paluch
- 関連事項:
コンストラクター概要
コンストラクターコンストラクター説明GitHubAuthentication(GitHubAuthenticationOptions options, VaultClient client) GitHubAuthentication(GitHubAuthenticationOptions options, RestClient client) GitHubAuthentication(GitHubAuthenticationOptions options, RestOperations restOperations) 使用すべきではありません。方法の概要
修飾子と型メソッド説明static AuthenticationStepsGitHubAuthenticationOptionsを指定して、GitHub 認証用のAuthenticationStepsを作成します。認証フローを記述するAuthenticationStepsを取得します。login()認証された Vault アクセス用のVaultTokenを取得します。
コンストラクターの詳細
GitHubAuthentication
@DeprecatedSE(since="4.1") public GitHubAuthentication(GitHubAuthenticationOptions options, RestOperations restOperations) 使用すべきではありません。4.1 以降、代わりにGitHubAuthentication(GitHubAuthenticationOptions, VaultClient)を使用してください。- パラメーター:
options- null であってはなりません。restOperations- null であってはなりません。
GitHubAuthentication
- パラメーター:
options- null であってはなりません。client- null であってはなりません。- 導入:
- 4.0
GitHubAuthentication
- パラメーター:
options- null であってはなりません。client- null であってはなりません。- 導入:
- 4.1
メソッドの詳細
createAuthenticationSteps
GitHubAuthenticationOptionsを指定して、GitHub 認証用のAuthenticationStepsを作成します。- パラメーター:
options- null であってはなりません。- 戻り値:
- github 認証用の
AuthenticationSteps。
getAuthenticationSteps
インターフェースからコピーされた説明:AuthenticationStepsFactory認証フローを記述するAuthenticationStepsを取得します。- 次で指定:
- インターフェース
AuthenticationStepsFactoryのgetAuthenticationSteps - 戻り値:
- 認証フローを記述する
AuthenticationSteps。
login
インターフェースからコピーされた説明:ClientAuthentication認証された Vault アクセス用のVaultTokenを取得します。このメソッドは、Vault への認証リクエストを実行するか、キャッシュされたトークンまたは事前構成されたトークンを返す場合があります。
- 次で指定:
- インターフェース
ClientAuthenticationのlogin - 戻り値:
- 後続の認証リクエストの Vault トークン
- 例外:
VaultLoginException- 認証が失敗した場合。VaultException- 関連事項:
GitHubAuthentication(GitHubAuthenticationOptions, VaultClient)を使用してください。