public class OtpCredentials extends Object implements Credentials
| Constructor and Description |
|---|
OtpCredentials(JsonObject jsonObject) |
OtpCredentials(String identifier,
String code) |
| Modifier and Type | Method and Description |
|---|---|
<V> void |
checkValid(V arg)
Implementors should override this method to perform validation.
|
String |
getCode() |
String |
getIdentifier() |
OtpCredentials |
setCode(String code) |
OtpCredentials |
setIdentifier(String identifier) |
JsonObject |
toJson()
Simple interop to downcast back to JSON for backwards compatibility.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyHttpChallenge, applyHttpChallenge, applyHttpChallenge, toHttpAuthorizationpublic OtpCredentials(JsonObject jsonObject)
public String getCode()
public String getIdentifier()
public OtpCredentials setCode(String code)
public OtpCredentials setIdentifier(String identifier)
public <V> void checkValid(V arg)
throws CredentialValidationException
CredentialscheckValid in interface CredentialsV - the generic type of the argumentarg - optional argument or null.CredentialValidationException - when the validation failspublic JsonObject toJson()
CredentialstoJson in interface CredentialsCopyright © 2022 Eclipse. All rights reserved.