Class AccountAuthenticatorResponse
java.lang.Object
co.ankatech.keymanagement.client.auth.model.AccountAuthenticatorResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class AccountAuthenticatorResponse
extends Object
One of the person's authenticators. Never carries a credential id, a public key, an attestation statement or a secret.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe authenticator kind -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticatorId(UUID authenticatorId) createdAt(OffsetDateTime createdAt) displayName(String displayName) booleanstatic AccountAuthenticatorResponseCreate an instance of AccountAuthenticatorResponse given an JSON stringThe opaque authenticator id the platform assigned; never the WebAuthn credential idWhen it was registered (TOTP: when its enrolment completed)The name the person gave the passkey; null for TOTPgetKind()The authenticator kindThe wire value ofkind: what the server sent, verbatim.When it last signed in; null when it never hasThe capability propertiesPasskeys only: whether the passkey was registered for this deployment's current host name.getRpId()Passkeys only: the host name the passkey was registered for (its WebAuthn relying party identifier).inthashCode()lastUsedAt(OffsetDateTime lastUsedAt) properties(AccountAuthenticatorProperties properties) registeredForCurrentRpId(Boolean registeredForCurrentRpId) voidsetAuthenticatorId(UUID authenticatorId) voidsetCreatedAt(OffsetDateTime createdAt) voidsetDisplayName(String displayName) voidvoidsetLastUsedAt(OffsetDateTime lastUsedAt) voidsetProperties(AccountAuthenticatorProperties properties) voidsetRegisteredForCurrentRpId(Boolean registeredForCurrentRpId) voidtoJson()Convert an instance of AccountAuthenticatorResponse to an JSON stringtoString()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_AUTHENTICATOR_ID
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_DISPLAY_NAME
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_LAST_USED_AT
- See Also:
-
SERIALIZED_NAME_PROPERTIES
- See Also:
-
SERIALIZED_NAME_RP_ID
- See Also:
-
SERIALIZED_NAME_REGISTERED_FOR_CURRENT_RP_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
AccountAuthenticatorResponse
public AccountAuthenticatorResponse()
-
-
Method Details
-
getKindAsString
The wire value ofkind: what the server sent, verbatim.- For a value this release declares, the same wire value the enum names.
- For a value it does not declare (one a later server added), the server's wire value verbatim,
while
getKind()readsUNKNOWN_DEFAULT_OPEN_API; writing this model sends that wire value back, never the sentinel. - For an absent member,
null.
- Returns:
- the wire value, or
nullwhen the member is absent
-
authenticatorId
-
getAuthenticatorId
The opaque authenticator id the platform assigned; never the WebAuthn credential id- Returns:
- authenticatorId
-
setAuthenticatorId
-
kind
-
getKind
The authenticator kind- Returns:
- kind
-
setKind
-
displayName
-
getDisplayName
The name the person gave the passkey; null for TOTP- Returns:
- displayName
-
setDisplayName
-
createdAt
-
getCreatedAt
When it was registered (TOTP: when its enrolment completed)- Returns:
- createdAt
-
setCreatedAt
-
lastUsedAt
-
getLastUsedAt
When it last signed in; null when it never has- Returns:
- lastUsedAt
-
setLastUsedAt
-
properties
-
getProperties
The capability properties- Returns:
- properties
-
setProperties
-
rpId
-
getRpId
Passkeys only: the host name the passkey was registered for (its WebAuthn relying party identifier). Absent for an authenticator app, and when the account service did not state it.- Returns:
- rpId
-
setRpId
-
registeredForCurrentRpId
public AccountAuthenticatorResponse registeredForCurrentRpId(@Nullable Boolean registeredForCurrentRpId) -
getRegisteredForCurrentRpId
Passkeys only: whether the passkey was registered for this deployment's current host name. A passkey registered for another host name (the deployment's host name changed since) is listed, can be renamed or removed, and is never offered at sign-in: a browser uses a passkey only on the host name it was registered for. Absent for an authenticator app, and when the account service did not state it: absence never means false.- Returns:
- registeredForCurrentRpId
-
setRegisteredForCurrentRpId
-
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 AccountAuthenticatorResponse
-
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 AccountAuthenticatorResponse
-
fromJson
Create an instance of AccountAuthenticatorResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountAuthenticatorResponse
- Throws:
IOException- if the JSON string is invalid with respect to AccountAuthenticatorResponse
-
toJson
Convert an instance of AccountAuthenticatorResponse to an JSON string- Returns:
- JSON string
-