Package io.jmix.email.authentication
Class OAuth2DeviceCodeSession
java.lang.Object
io.jmix.email.authentication.OAuth2DeviceCodeSession
State of a running
OAuth2DeviceCodeFlow. Instances are thread-safe: the flow
implementation updates the state from background threads, the UI polls it.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable Stringprotected @Nullable Stringprotected OAuth2DeviceCodeSession.Statusprotected @Nullable Stringprotected @Nullable String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Intended to be called byOAuth2DeviceCodeFlowimplementations.voidIntended to be called byOAuth2DeviceCodeFlowimplementations.@Nullable String@Nullable String@Nullable String@Nullable StringvoidIntended to be called byOAuth2DeviceCodeFlowimplementations.
-
Field Details
-
status
-
userCode
-
verificationUri
-
message
-
errorMessage
-
-
Constructor Details
-
OAuth2DeviceCodeSession
public OAuth2DeviceCodeSession()
-
-
Method Details
-
getStatus
-
getUserCode
- Returns:
- code the user must enter on the provider verification page
-
getVerificationUri
- Returns:
- provider verification page URI
-
getMessage
- Returns:
- provider-supplied instruction message, if any
-
getErrorMessage
-
init
Intended to be called byOAuth2DeviceCodeFlowimplementations. -
complete
public void complete()Intended to be called byOAuth2DeviceCodeFlowimplementations. -
fail
Intended to be called byOAuth2DeviceCodeFlowimplementations.
-