Class PlatformCredentialAuthenticationMethod

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.AuthenticationMethod
com.microsoft.graph.models.PlatformCredentialAuthenticationMethod
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class PlatformCredentialAuthenticationMethod extends AuthenticationMethod implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static PlatformCredentialAuthenticationMethod createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a PlatformCredentialAuthenticationMethod
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date and time that this Platform Credential Key was registered.
      Returns:
      a OffsetDateTime
    • getDevice

      @Nullable public Device getDevice()
      Gets the device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.
      Returns:
      a Device
    • getDisplayName

      @Nullable public String getDisplayName()
      Gets the displayName property value. The name of the device on which Platform Credential is registered.
      Returns:
      a String
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class AuthenticationMethod
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getKeyStrength

      @Nullable public AuthenticationMethodKeyStrength getKeyStrength()
      Gets the keyStrength property value. Key strength of this Platform Credential key. Possible values are: normal, weak, unknown.
      Returns:
      a AuthenticationMethodKeyStrength
    • getPlatform

      @Nullable public AuthenticationMethodPlatform getPlatform()
      Gets the platform property value. Platform on which this Platform Credential key is present. Possible values are: unknown, windows, macOS,iOS, android, linux.
      Returns:
      a AuthenticationMethodPlatform
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class AuthenticationMethod
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date and time that this Platform Credential Key was registered.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setDevice

      public void setDevice(@Nullable Device value)
      Sets the device property value. The registered device on which this Platform Credential resides. Supports $expand. When you get a user's Platform Credential registration information, this property is returned only on a single GET and when you specify ?$expand. For example, GET /users/admin@contoso.com/authentication/platformCredentialAuthenticationMethod/_jpuR-TGZtk6aQCLF3BQjA2?$expand=device.
      Parameters:
      value - Value to set for the device property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The name of the device on which Platform Credential is registered.
      Parameters:
      value - Value to set for the displayName property.
    • setKeyStrength

      public void setKeyStrength(@Nullable AuthenticationMethodKeyStrength value)
      Sets the keyStrength property value. Key strength of this Platform Credential key. Possible values are: normal, weak, unknown.
      Parameters:
      value - Value to set for the keyStrength property.
    • setPlatform

      public void setPlatform(@Nullable AuthenticationMethodPlatform value)
      Sets the platform property value. Platform on which this Platform Credential key is present. Possible values are: unknown, windows, macOS,iOS, android, linux.
      Parameters:
      value - Value to set for the platform property.