public class OAuth2SecurityInterceptor extends java.lang.Object implements SecurityInterceptor
Constructor and Description |
---|
OAuth2SecurityInterceptor(java.lang.String url,
java.lang.String clientId,
java.lang.String clientSecret,
java.lang.String grantType,
java.lang.String scope)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
public OAuth2SecurityInterceptor(java.lang.String url, java.lang.String clientId, java.lang.String clientSecret, java.lang.String grantType, java.lang.String scope) throws GenieClientException
url
- The URL of the IDP server for getting oauth token.clientId
- The client id to use to fetch credentials.clientSecret
- The client secret to use to fetch credentials.grantType
- The grant type for the user.scope
- The scope of the user permissions.GenieClientException
- If there is a problem initializing the object.