Class MicrosoftGraphKeyCredentialInner

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphKeyCredentialInner

public final class MicrosoftGraphKeyCredentialInner extends Object
keyCredential.
  • Constructor Details

    • MicrosoftGraphKeyCredentialInner

      public MicrosoftGraphKeyCredentialInner()
      Creates an instance of MicrosoftGraphKeyCredentialInner class.
  • Method Details

    • customKeyIdentifier

      public byte[] customKeyIdentifier()
      Get the customKeyIdentifier property: Custom key identifier.
      Returns:
      the customKeyIdentifier value.
    • withCustomKeyIdentifier

      public MicrosoftGraphKeyCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier)
      Set the customKeyIdentifier property: Custom key identifier.
      Parameters:
      customKeyIdentifier - the customKeyIdentifier value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • displayName

      public String displayName()
      Get the displayName property: Friendly name for the key. Optional.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphKeyCredentialInner withDisplayName(String displayName)
      Set the displayName property: Friendly name for the key. Optional.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • endDateTime

      public OffsetDateTime endDateTime()
      Get the endDateTime property: The date and time at which the credential expires.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 would look like this: '2014-01-01T00:00:00Z'.
      Returns:
      the endDateTime value.
    • withEndDateTime

      public MicrosoftGraphKeyCredentialInner withEndDateTime(OffsetDateTime endDateTime)
      Set the endDateTime property: The date and time at which the credential expires.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 would look like this: '2014-01-01T00:00:00Z'.
      Parameters:
      endDateTime - the endDateTime value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • key

      public byte[] key()
      Get the key property: The certificate's raw data in byte array converted to Base64 string; for example, [System.Convert]::ToBase64String($Cert.GetRawCertData()).
      Returns:
      the key value.
    • withKey

      public MicrosoftGraphKeyCredentialInner withKey(byte[] key)
      Set the key property: The certificate's raw data in byte array converted to Base64 string; for example, [System.Convert]::ToBase64String($Cert.GetRawCertData()).
      Parameters:
      key - the key value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • keyId

      public UUID keyId()
      Get the keyId property: The unique identifier (GUID) for the key.
      Returns:
      the keyId value.
    • withKeyId

      public MicrosoftGraphKeyCredentialInner withKeyId(UUID keyId)
      Set the keyId property: The unique identifier (GUID) for the key.
      Parameters:
      keyId - the keyId value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • startDateTime

      public OffsetDateTime startDateTime()
      Get the startDateTime property: 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 would look like this: '2014-01-01T00:00:00Z'.
      Returns:
      the startDateTime value.
    • withStartDateTime

      public MicrosoftGraphKeyCredentialInner withStartDateTime(OffsetDateTime startDateTime)
      Set the startDateTime property: 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 would look like this: '2014-01-01T00:00:00Z'.
      Parameters:
      startDateTime - the startDateTime value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • type

      public String type()
      Get the type property: The type of key credential; for example, 'Symmetric'.
      Returns:
      the type value.
    • withType

      public MicrosoftGraphKeyCredentialInner withType(String type)
      Set the type property: The type of key credential; for example, 'Symmetric'.
      Parameters:
      type - the type value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • usage

      public String usage()
      Get the usage property: A string that describes the purpose for which the key can be used; for example, 'Verify'.
      Returns:
      the usage value.
    • withUsage

      public MicrosoftGraphKeyCredentialInner withUsage(String usage)
      Set the usage property: A string that describes the purpose for which the key can be used; for example, 'Verify'.
      Parameters:
      usage - the usage value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: keyCredential.
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphKeyCredentialInner withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: keyCredential.
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphKeyCredentialInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.