![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.Fido2AuthenticationMethod Maven / Gradle / Ivy
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Fido2AuthenticationMethod extends AuthenticationMethod implements Parsable {
/**
* Instantiates a new {@link Fido2AuthenticationMethod} and sets the default values.
*/
public Fido2AuthenticationMethod() {
super();
this.setOdataType("#microsoft.graph.fido2AuthenticationMethod");
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link Fido2AuthenticationMethod}
*/
@jakarta.annotation.Nonnull
public static Fido2AuthenticationMethod createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Fido2AuthenticationMethod();
}
/**
* Gets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (e.g. make and model) of the authenticator.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAaGuid() {
return this.backingStore.get("aaGuid");
}
/**
* Gets the attestationCertificates property value. The attestation certificate(s) attached to this security key.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAttestationCertificates() {
return this.backingStore.get("attestationCertificates");
}
/**
* Gets the attestationLevel property value. The attestation level of this FIDO2 security key. Possible values are: attested, or notAttested.
* @return a {@link AttestationLevel}
*/
@jakarta.annotation.Nullable
public AttestationLevel getAttestationLevel() {
return this.backingStore.get("attestationLevel");
}
/**
* Gets the createdDateTime property value. The timestamp when this key was registered to the user.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* Gets the displayName property value. The display name of the key as given by the user.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("aaGuid", (n) -> { this.setAaGuid(n.getStringValue()); });
deserializerMap.put("attestationCertificates", (n) -> { this.setAttestationCertificates(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("attestationLevel", (n) -> { this.setAttestationLevel(n.getEnumValue(AttestationLevel::forValue)); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("model", (n) -> { this.setModel(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the model property value. The manufacturer-assigned model of the FIDO2 security key.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getModel() {
return this.backingStore.get("model");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeStringValue("aaGuid", this.getAaGuid());
writer.writeCollectionOfPrimitiveValues("attestationCertificates", this.getAttestationCertificates());
writer.writeEnumValue("attestationLevel", this.getAttestationLevel());
writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeStringValue("model", this.getModel());
}
/**
* Sets the aaGuid property value. Authenticator Attestation GUID, an identifier that indicates the type (e.g. make and model) of the authenticator.
* @param value Value to set for the aaGuid property.
*/
public void setAaGuid(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("aaGuid", value);
}
/**
* Sets the attestationCertificates property value. The attestation certificate(s) attached to this security key.
* @param value Value to set for the attestationCertificates property.
*/
public void setAttestationCertificates(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("attestationCertificates", value);
}
/**
* Sets the attestationLevel property value. The attestation level of this FIDO2 security key. Possible values are: attested, or notAttested.
* @param value Value to set for the attestationLevel property.
*/
public void setAttestationLevel(@jakarta.annotation.Nullable final AttestationLevel value) {
this.backingStore.set("attestationLevel", value);
}
/**
* Sets the createdDateTime property value. The timestamp when this key was registered to the user.
* @param value Value to set for the createdDateTime property.
*/
public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTime", value);
}
/**
* Sets the displayName property value. The display name of the key as given by the user.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the model property value. The manufacturer-assigned model of the FIDO2 security key.
* @param value Value to set for the model property.
*/
public void setModel(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("model", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy