クラス OAuth2DeviceAuthorizationResponse
java.lang.ObjectSE
org.springframework.security.oauth2.core.endpoint.OAuth2DeviceAuthorizationResponse
OAuth 2.0 デバイス認証レスポンスの表現。
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明static final class
メソッドのサマリー
修飾子と型メソッド説明レスポンスで返された追加のパラメーターを返します。Device Code
を返します。long
クライアントがトークンエンドポイントへのポーリングリクエストの間に待機する必要がある最小時間 (秒単位) を返します。User Code
を返します。エンドユーザー検証 URI を返します。ユーザーコードを含むエンドユーザー検証 URI を返します。指定されたデバイスコードとユーザーコードの値で初期化された新しいOAuth2DeviceAuthorizationResponse.Builder
を返します。with
(OAuth2DeviceCode deviceCode, OAuth2UserCode userCode) 指定されたデバイスコードとユーザーコードで初期化された新しいOAuth2DeviceAuthorizationResponse.Builder
を返します。
メソッドの詳細
getDeviceCode
Device Code
を返します。- 戻り値:
OAuth2DeviceCode
getUserCode
User Code
を返します。- 戻り値:
OAuth2UserCode
getVerificationUri
エンドユーザー検証 URI を返します。- 戻り値:
- エンドユーザー検証 URI
getVerificationUriComplete
ユーザーコードを含むエンドユーザー検証 URI を返します。- 戻り値:
- ユーザーコードを含むエンドユーザー検証 URI
getInterval
public long getInterval()クライアントがトークンエンドポイントへのポーリングリクエストの間に待機する必要がある最小時間 (秒単位) を返します。- 戻り値:
- ポーリングリクエスト間の最小時間
getAdditionalParameters
レスポンスで返された追加のパラメーターを返します。- 戻り値:
- レスポンスで返される追加パラメーターの
Map
は、空である可能性があります。
with
public static OAuth2DeviceAuthorizationResponse.Builder with(StringSE deviceCode, StringSE userCode) 指定されたデバイスコードとユーザーコードの値で初期化された新しいOAuth2DeviceAuthorizationResponse.Builder
を返します。- パラメーター:
deviceCode
- デバイスコードの値userCode
- ユーザーコードの値- 戻り値:
OAuth2DeviceAuthorizationResponse.Builder
with
public static OAuth2DeviceAuthorizationResponse.Builder with(OAuth2DeviceCode deviceCode, OAuth2UserCode userCode) 指定されたデバイスコードとユーザーコードで初期化された新しいOAuth2DeviceAuthorizationResponse.Builder
を返します。- パラメーター:
deviceCode
-OAuth2DeviceCode
userCode
-OAuth2UserCode
- 戻り値:
OAuth2DeviceAuthorizationResponse.Builder