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, wait
applyHttpChallenge, applyHttpChallenge, applyHttpChallenge, toHttpAuthorization
public 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
Credentials
checkValid
in interface Credentials
V
- the generic type of the argumentarg
- optional argument or null.CredentialValidationException
- when the validation failspublic JsonObject toJson()
Credentials
toJson
in interface Credentials
Copyright © 2024 Eclipse. All rights reserved.