Class PublicKeyCreationOptions
java.lang.Object
co.ankatech.keymanagement.client.auth.model.PublicKeyCreationOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class PublicKeyCreationOptions
extends Object
WebAuthn PublicKeyCredentialCreationOptionsJSON
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe attestation conveyance preferencestatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddExcludeCredentialsItem(PublicKeyCreationCredentialDescriptor excludeCredentialsItem) addPubKeyCredParamsItem(PublicKeyCreationCredentialParameters pubKeyCredParamsItem) attestation(PublicKeyCreationOptions.AttestationEnum attestation) authenticatorSelection(PublicKeyCreationAuthenticatorSelection authenticatorSelection) booleanexcludeCredentials(List<PublicKeyCreationCredentialDescriptor> excludeCredentials) extensions(PublicKeyCreationExtensions extensions) static PublicKeyCreationOptionsCreate an instance of PublicKeyCreationOptions given an JSON stringThe attestation conveyance preferenceThe wire value ofattestation: what the server sent, verbatim.The authenticator requirementsThe single-use challenge, base64urlThe person's registered passkeysThe client extensions requestedThe accepted public key algorithms, preferred firstgetRp()The relying partyHow long the ceremony may take, in millisecondsgetUser()The user the passkey is created forinthashCode()pubKeyCredParams(List<PublicKeyCreationCredentialParameters> pubKeyCredParams) voidsetAttestation(PublicKeyCreationOptions.AttestationEnum attestation) voidsetAuthenticatorSelection(PublicKeyCreationAuthenticatorSelection authenticatorSelection) voidsetChallenge(String challenge) voidsetExcludeCredentials(List<PublicKeyCreationCredentialDescriptor> excludeCredentials) voidsetExtensions(PublicKeyCreationExtensions extensions) voidsetPubKeyCredParams(List<PublicKeyCreationCredentialParameters> pubKeyCredParams) voidvoidsetTimeout(Long timeout) voidsetUser(PublicKeyCreationUser user) toJson()Convert an instance of PublicKeyCreationOptions to an JSON stringtoString()user(PublicKeyCreationUser user) 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_CHALLENGE
- See Also:
-
SERIALIZED_NAME_RP
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
SERIALIZED_NAME_PUB_KEY_CRED_PARAMS
- See Also:
-
SERIALIZED_NAME_TIMEOUT
- See Also:
-
SERIALIZED_NAME_EXCLUDE_CREDENTIALS
- See Also:
-
SERIALIZED_NAME_AUTHENTICATOR_SELECTION
- See Also:
-
SERIALIZED_NAME_ATTESTATION
- See Also:
-
SERIALIZED_NAME_EXTENSIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublicKeyCreationOptions
public PublicKeyCreationOptions()
-
-
Method Details
-
getAttestationAsString
The wire value ofattestation: 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
getAttestation()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
-
challenge
-
getChallenge
The single-use challenge, base64url- Returns:
- challenge
-
setChallenge
-
rp
-
getRp
The relying party- Returns:
- rp
-
setRp
-
user
-
getUser
The user the passkey is created for- Returns:
- user
-
setUser
-
pubKeyCredParams
public PublicKeyCreationOptions pubKeyCredParams(@Nonnull List<PublicKeyCreationCredentialParameters> pubKeyCredParams) -
addPubKeyCredParamsItem
public PublicKeyCreationOptions addPubKeyCredParamsItem(PublicKeyCreationCredentialParameters pubKeyCredParamsItem) -
getPubKeyCredParams
The accepted public key algorithms, preferred first- Returns:
- pubKeyCredParams
-
setPubKeyCredParams
public void setPubKeyCredParams(@Nonnull List<PublicKeyCreationCredentialParameters> pubKeyCredParams) -
timeout
-
getTimeout
How long the ceremony may take, in milliseconds- Returns:
- timeout
-
setTimeout
-
excludeCredentials
public PublicKeyCreationOptions excludeCredentials(@Nonnull List<PublicKeyCreationCredentialDescriptor> excludeCredentials) -
addExcludeCredentialsItem
public PublicKeyCreationOptions addExcludeCredentialsItem(PublicKeyCreationCredentialDescriptor excludeCredentialsItem) -
getExcludeCredentials
The person's registered passkeys- Returns:
- excludeCredentials
-
setExcludeCredentials
public void setExcludeCredentials(@Nonnull List<PublicKeyCreationCredentialDescriptor> excludeCredentials) -
authenticatorSelection
public PublicKeyCreationOptions authenticatorSelection(@Nonnull PublicKeyCreationAuthenticatorSelection authenticatorSelection) -
getAuthenticatorSelection
The authenticator requirements- Returns:
- authenticatorSelection
-
setAuthenticatorSelection
public void setAuthenticatorSelection(@Nonnull PublicKeyCreationAuthenticatorSelection authenticatorSelection) -
attestation
public PublicKeyCreationOptions attestation(@Nonnull PublicKeyCreationOptions.AttestationEnum attestation) -
getAttestation
The attestation conveyance preference- Returns:
- attestation
-
setAttestation
-
extensions
-
getExtensions
The client extensions requested- Returns:
- extensions
-
setExtensions
-
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 PublicKeyCreationOptions
-
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 PublicKeyCreationOptions
-
fromJson
Create an instance of PublicKeyCreationOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublicKeyCreationOptions
- Throws:
IOException- if the JSON string is invalid with respect to PublicKeyCreationOptions
-
toJson
Convert an instance of PublicKeyCreationOptions to an JSON string- Returns:
- JSON string
-