Class OAuth2SecurityInterceptor
- java.lang.Object
-
- com.netflix.genie.client.security.oauth2.impl.OAuth2SecurityInterceptor
-
- All Implemented Interfaces:
SecurityInterceptor
,okhttp3.Interceptor
public class OAuth2SecurityInterceptor extends java.lang.Object implements SecurityInterceptor
An interceptor that adds security headers to all outgoing requests.
-
-
Constructor Summary
Constructors Constructor Description OAuth2SecurityInterceptor(java.lang.String url, java.lang.String clientId, java.lang.String clientSecret, java.lang.String grantType, java.lang.String scope)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Response
intercept(okhttp3.Interceptor.Chain chain)
-
-
-
Constructor Detail
-
OAuth2SecurityInterceptor
public OAuth2SecurityInterceptor(java.lang.String url, java.lang.String clientId, java.lang.String clientSecret, java.lang.String grantType, java.lang.String scope) throws GenieClientException
Constructor.- Parameters:
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.- Throws:
GenieClientException
- If there is a problem initializing the object.
-
-