クラス RemoteOAuthAccessTokenStore
java.lang.Object
org.iplass.mtp.impl.auth.oauth.token.remote.RemoteOAuthAccessTokenStore
- すべての実装されたインタフェース:
OAuthAccessTokenStore,org.iplass.mtp.spi.ServiceInitListener<OAuthAuthorizationService>
public class RemoteOAuthAccessTokenStore
extends Object
implements OAuthAccessTokenStore, org.iplass.mtp.spi.ServiceInitListener<OAuthAuthorizationService>
バックエンドでOAuth 2.0 Token Introspection (RFC7662)を呼び出すTokenStore。
AuthorizationServerとは別インスタンスのResourceServerでの利用想定。
読み取り専用。
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明createAccessToken(MetaOAuthClient.OAuthClientRuntime client, String resourceOwnerId, List<String> scopes) createAccessToken(MetaOAuthClient.OAuthClientRuntime client, RefreshToken refreshToken) voidgetAccessToken(String tokenString) getAccessTokenByUserOid(MetaOAuthClient.OAuthClientRuntime client, String userOid) org.iplass.mtp.impl.http.ExponentialBackofforg.iplass.mtp.impl.http.HttpClientConfiggetRefreshToken(String tokenString) voidinited(OAuthAuthorizationService service, org.iplass.mtp.spi.Config config) booleanAccessTokenに紐づくユーザー情報の取得方法の制御voidrevokeToken(MetaOAuthClient.OAuthClientRuntime client, String tokenString, String tokenTypeHint) voidrevokeTokenByUserOid(String userOid) voidsetAuthenticationMethod(ClientAuthenticationMethod authenticationMethod) voidsetExponentialBackoff(org.iplass.mtp.impl.http.ExponentialBackoff exponentialBackoff) voidsetHttpClientConfig(org.iplass.mtp.impl.http.HttpClientConfig httpClientConfig) voidsetIntrospectionEndpointUrl(String introspectionEndpointUrl) voidsetReloadUser(boolean reloadUser) voidsetResourceServerId(String resourceServerId) voidsetResourceServerSecret(String resourceServerSecret) voidsetTenantValidationType(TenantValidationType tenantValidationType)
-
コンストラクタの詳細
-
RemoteOAuthAccessTokenStore
public RemoteOAuthAccessTokenStore()
-
-
メソッドの詳細
-
getAuthenticationMethod
- 戻り値:
- Introspection EndpointのClient(Resource Server)認証方式
-
setAuthenticationMethod
- パラメータ:
authenticationMethod- Introspection EndpointのClient(Resource Server)認証方式
-
getHttpClientConfig
public org.iplass.mtp.impl.http.HttpClientConfig getHttpClientConfig()- 戻り値:
- HttpClientConfig
-
setHttpClientConfig
public void setHttpClientConfig(org.iplass.mtp.impl.http.HttpClientConfig httpClientConfig) - パラメータ:
httpClientConfig- HttpClientConfig
-
getExponentialBackoff
public org.iplass.mtp.impl.http.ExponentialBackoff getExponentialBackoff()- 戻り値:
- リトライ処理する際の 指数バックオフ
-
setExponentialBackoff
public void setExponentialBackoff(org.iplass.mtp.impl.http.ExponentialBackoff exponentialBackoff) - パラメータ:
exponentialBackoff- リトライ処理する際の 指数バックオフ
-
getTenantValidationType
- 戻り値:
- テナントの検証方式
-
setTenantValidationType
- パラメータ:
tenantValidationType- テナントの検証方式
-
getIntrospectionEndpointUrl
- 戻り値:
- Introspection EndpointのURL
-
setIntrospectionEndpointUrl
- パラメータ:
introspectionEndpointUrl- Introspection EndpointのURL
-
getResourceServerId
- 戻り値:
- Authorization Serverから発行されるResource ServerのID
-
setResourceServerId
- パラメータ:
resourceServerId- Authorization Serverから発行されるResource ServerのID
-
getResourceServerSecret
- 戻り値:
- Authorization Serverから発行されるResource ServerのSecret
-
setResourceServerSecret
- パラメータ:
resourceServerSecret- Authorization Serverから発行されるResource ServerのSecret
-
isReloadUser
public boolean isReloadUser()AccessTokenに紐づくユーザー情報の取得方法の制御trueの場合
レスポンスの sub の値をoidとみなし、Resource Server上からUserエンティティを検索します。Userが存在しない場合、許可しません。falseの場合
レスポンスからユーザー情報を取得します。 レスポンスに resource_owner でUserエンティティのJSON表現が格納されていた場合、それを利用します。 resource_owner に格納されていなかった場合、 sub の値をoid、accountIdとし、 username の値をnameとしてユーザー情報とします。- 戻り値:
- AccessTokenに紐づくユーザー情報の取得方法の制御
-
setReloadUser
public void setReloadUser(boolean reloadUser) - パラメータ:
reloadUser- AccessTokenに紐づくユーザー情報の取得方法の制御
-
getAccessToken
- 定義:
getAccessTokenインタフェース内OAuthAccessTokenStore
-
inited
- 定義:
initedインタフェース内org.iplass.mtp.spi.ServiceInitListener<OAuthAuthorizationService>
-
destroyed
public void destroyed()- 定義:
destroyedインタフェース内org.iplass.mtp.spi.ServiceInitListener<OAuthAuthorizationService>
-
createAccessToken
public AccessToken createAccessToken(MetaOAuthClient.OAuthClientRuntime client, String resourceOwnerId, List<String> scopes) - 定義:
createAccessTokenインタフェース内OAuthAccessTokenStore
-
createAccessToken
public AccessToken createAccessToken(MetaOAuthClient.OAuthClientRuntime client, RefreshToken refreshToken) - 定義:
createAccessTokenインタフェース内OAuthAccessTokenStore
-
getAccessTokenByUserOid
public AccessToken getAccessTokenByUserOid(MetaOAuthClient.OAuthClientRuntime client, String userOid) - 定義:
getAccessTokenByUserOidインタフェース内OAuthAccessTokenStore
-
getRefreshToken
- 定義:
getRefreshTokenインタフェース内OAuthAccessTokenStore
-
revokeToken
public void revokeToken(MetaOAuthClient.OAuthClientRuntime client, String tokenString, String tokenTypeHint) - 定義:
revokeTokenインタフェース内OAuthAccessTokenStore
-
revokeTokenByUserOid
- 定義:
revokeTokenByUserOidインタフェース内OAuthAccessTokenStore
-