Class OtpConfiguration
-
- All Implemented Interfaces:
public class OtpConfigurationThis class holds all the information for OTP (one time passcode) configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classOtpConfiguration.BuilderThis class is used to build a OtpConfiguration object.
-
Field Summary
Fields Modifier and Type Field Description public final StringchallengeHeaderNamepublic final StringchallengeHeaderValuepublic final StringfinishEndpointUrlpublic final StringauthorizationEndpointUrl
-
Method Summary
Modifier and Type Method Description StringgetChallengeHeaderName()The challenge header is how the OtpInterceptor can detect an OTP challenge. StringgetChallengeHeaderValue()The challenge header is how the OtpInterceptor can detect an OTP challenge. StringgetFinishEndpointUrl()The OtpProcessor knows that OTP authentication has succeeded when the finish endpoint URL is loaded. StringgetAuthorizationEndpointUrl()The OtpProcessor uses the authorization endpoint URL to start the OTP authentication flow. -
-
Method Detail
-
getChallengeHeaderName
@NonNull() String getChallengeHeaderName()
The challenge header is how the OtpInterceptor can detect an OTP challenge. If a response has a header name matching this parameter (and a value matching the challenge header value) then the OtpInterceptor will use its OtpProcessor to authenticate before resending the request.
- Returns:
The challenge header name
-
getChallengeHeaderValue
@NonNull() String getChallengeHeaderValue()
The challenge header is how the OtpInterceptor can detect an OTP challenge. If a response has a header value matching this parameter (and a name matching the challenge header name) then the OtpInterceptor will use its OtpProcessor to authenticate before resending the request.
- Returns:
The challenge header name
-
getFinishEndpointUrl
@NonNull() String getFinishEndpointUrl()
The OtpProcessor knows that OTP authentication has succeeded when the finish endpoint URL is loaded.
- Returns:
The finish endpoint URL
-
getAuthorizationEndpointUrl
@NonNull() String getAuthorizationEndpointUrl()
The OtpProcessor uses the authorization endpoint URL to start the OTP authentication flow.
- Returns:
The authorization endpoint URL
-
-
-
-