Class KeyCredential

java.lang.Object
com.microsoft.graph.models.KeyCredential
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class KeyCredential extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Key Credential.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • customKeyIdentifier

      @SerializedName(value="customKeyIdentifier", alternate="CustomKeyIdentifier") @Expose @Nullable public byte[] customKeyIdentifier
      The Custom Key Identifier. Custom key identifier
    • displayName

      @SerializedName(value="displayName", alternate="DisplayName") @Expose @Nullable public String displayName
      The Display Name. Friendly name for the key. Optional.
    • endDateTime

      @SerializedName(value="endDateTime", alternate="EndDateTime") @Expose @Nullable public OffsetDateTime endDateTime
      The End Date Time. The date and time at which the credential expires. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
    • key

      @SerializedName(value="key", alternate="Key") @Expose @Nullable public byte[] key
      The Key. Value for the key credential. Should be a Base64 encoded value. Returned only on $select for a single object, that is, GET applications/{applicationId}?$select=keyCredentials or GET servicePrincipals/{servicePrincipalId}?$select=keyCredentials; otherwise, it is always null.
    • keyId

      @SerializedName(value="keyId", alternate="KeyId") @Expose @Nullable public UUID keyId
      The Key Id. The unique identifier for the key.
    • startDateTime

      @SerializedName(value="startDateTime", alternate="StartDateTime") @Expose @Nullable public OffsetDateTime startDateTime
      The Start Date Time. The date and time at which the credential becomes valid.The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
    • type

      @SerializedName(value="type", alternate="Type") @Expose @Nullable public String type
      The Type. The type of key credential; for example, Symmetric, AsymmetricX509Cert.
    • usage

      @SerializedName(value="usage", alternate="Usage") @Expose @Nullable public String usage
      The Usage. A string that describes the purpose for which the key can be used; for example, Verify.
  • Constructor Details

    • KeyCredential

      public KeyCredential()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to