Class AwsCognitoIdpUserPasswordAuthenticationInterceptor
java.lang.Object
com.helixframework.okhttp.cognito.AwsCognitoIdpUserPasswordAuthenticationInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
public class AwsCognitoIdpUserPasswordAuthenticationInterceptor
extends Object
implements okhttp3.Interceptor
OKHttp interceptor that ensures a valid token from AWS Cognito is set on requests.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for creating new instances ofAwsCognitoIdpUserPasswordAuthenticationInterceptor.Nested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Method Summary
Modifier and TypeMethodDescriptionbuilder(com.amazonaws.services.cognitoidp.AWSCognitoIdentityProvider cognitoIdp) Creates a builder forAwsCognitoIdpUserPasswordAuthenticationInterceptor.okhttp3.Responseintercept(okhttp3.Interceptor.Chain chain)
-
Method Details
-
builder
public static AwsCognitoIdpUserPasswordAuthenticationInterceptor.Builder builder(com.amazonaws.services.cognitoidp.AWSCognitoIdentityProvider cognitoIdp) Creates a builder forAwsCognitoIdpUserPasswordAuthenticationInterceptor.- Parameters:
cognitoIdp- cognito idp client- Returns:
AwsCognitoIdpUserPasswordAuthenticationInterceptor.Builder
-
intercept
@NotNull public okhttp3.Response intercept(@NotNull okhttp3.Interceptor.Chain chain) throws IOException - Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-