Class AccountAuthenticatorsResponse
java.lang.Object
co.ankatech.keymanagement.client.auth.model.AccountAuthenticatorsResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AccountAuthenticatorsResponse
extends Object
The signed-in person's authenticators
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAuthenticatorsItem(AccountAuthenticatorResponse authenticatorsItem) authenticators(List<AccountAuthenticatorResponse> authenticators) booleanCreate an instance of AccountAuthenticatorsResponse given an JSON stringThe passkeys first, then the TOTP factor, each group oldest first.Whether the person's account admits a passkey enrolment (createPasskeyRegistrationOptions): true when a tenant the person enters with their own authenticators, or the platform for a platform administrator, accepts a passkey.Whether the person holds a password, the one deleteAccountPassword removes.Whether the person's account admits an authenticator app at all (createTotpEnrolment).inthashCode()passkeyEnrolmentAdmitted(Boolean passkeyEnrolmentAdmitted) passwordHeld(Boolean passwordHeld) voidsetAuthenticators(List<AccountAuthenticatorResponse> authenticators) voidsetPasskeyEnrolmentAdmitted(Boolean passkeyEnrolmentAdmitted) voidsetPasswordHeld(Boolean passwordHeld) voidsetTotpEnrolmentAdmitted(Boolean totpEnrolmentAdmitted) toJson()Convert an instance of AccountAuthenticatorsResponse to an JSON stringtoString()totpEnrolmentAdmitted(Boolean totpEnrolmentAdmitted) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_AUTHENTICATORS
- See Also:
-
SERIALIZED_NAME_PASSWORD_HELD
- See Also:
-
SERIALIZED_NAME_TOTP_ENROLMENT_ADMITTED
- See Also:
-
SERIALIZED_NAME_PASSKEY_ENROLMENT_ADMITTED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountAuthenticatorsResponse
public AccountAuthenticatorsResponse()
-
-
Method Details
-
authenticators
public AccountAuthenticatorsResponse authenticators(@Nonnull List<AccountAuthenticatorResponse> authenticators) -
addAuthenticatorsItem
public AccountAuthenticatorsResponse addAuthenticatorsItem(AccountAuthenticatorResponse authenticatorsItem) -
getAuthenticators
The passkeys first, then the TOTP factor, each group oldest first. Empty when the person holds none.- Returns:
- authenticators
-
setAuthenticators
-
passwordHeld
-
getPasswordHeld
Whether the person holds a password, the one deleteAccountPassword removes. Absent when the account service did not state it: absence never means false.- Returns:
- passwordHeld
-
setPasswordHeld
-
totpEnrolmentAdmitted
-
getTotpEnrolmentAdmitted
Whether the person's account admits an authenticator app at all (createTotpEnrolment). False when no tenant the person enters with their own authenticators, nor the platform for a platform identity, admits password + TOTP. It does not say whether one is already held (the authenticators list does): a second enrolment is refused with 409. Absent when the account service did not state it (a release before this member): absence never means false.- Returns:
- totpEnrolmentAdmitted
-
setTotpEnrolmentAdmitted
-
passkeyEnrolmentAdmitted
public AccountAuthenticatorsResponse passkeyEnrolmentAdmitted(@Nullable Boolean passkeyEnrolmentAdmitted) -
getPasskeyEnrolmentAdmitted
Whether the person's account admits a passkey enrolment (createPasskeyRegistrationOptions): true when a tenant the person enters with their own authenticators, or the platform for a platform administrator, accepts a passkey. False when every tenant of the person is entered through its identity provider only, so a passkey would serve no sign-in. Absent when the account service did not state it (a release before this member): absence never means false.- Returns:
- passkeyEnrolmentAdmitted
-
setPasskeyEnrolmentAdmitted
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to AccountAuthenticatorsResponse
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a AccountAuthenticatorsResponse
-
fromJson
Create an instance of AccountAuthenticatorsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountAuthenticatorsResponse
- Throws:
IOException- if the JSON string is invalid with respect to AccountAuthenticatorsResponse
-
toJson
Convert an instance of AccountAuthenticatorsResponse to an JSON string- Returns:
- JSON string
-