Class MicrosoftGraphKeyCredentialInner
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphKeyCredentialInner
keyCredential.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MicrosoftGraphKeyCredentialInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: keyCredential.byte[]Get the customKeyIdentifier property: Custom key identifier.Get the displayName property: Friendly name for the key.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.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()).keyId()Get the keyId property: The unique identifier (GUID) for the key.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.type()Get the type property: The type of key credential; for example, 'Symmetric'.usage()Get the usage property: A string that describes the purpose for which the key can be used; for example, 'Verify'.voidvalidate()Validates the instance.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: keyCredential.withCustomKeyIdentifier(byte[] customKeyIdentifier) Set the customKeyIdentifier property: Custom key identifier.withDisplayName(String displayName) Set the displayName property: Friendly name for the key.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.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()).Set the keyId property: The unique identifier (GUID) for the key.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.Set the type property: The type of key credential; for example, 'Symmetric'.Set the usage property: A string that describes the purpose for which the key can be used; for example, 'Verify'.
-
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
Set the customKeyIdentifier property: Custom key identifier.- Parameters:
customKeyIdentifier- the customKeyIdentifier value to set.- Returns:
- the MicrosoftGraphKeyCredentialInner object itself.
-
displayName
Get the displayName property: Friendly name for the key. Optional.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Friendly name for the key. Optional.- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphKeyCredentialInner object itself.
-
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
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
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
Get the keyId property: The unique identifier (GUID) for the key.- Returns:
- the keyId value.
-
withKeyId
Set the keyId property: The unique identifier (GUID) for the key.- Parameters:
keyId- the keyId value to set.- Returns:
- the MicrosoftGraphKeyCredentialInner object itself.
-
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
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
Get the type property: The type of key credential; for example, 'Symmetric'.- Returns:
- the type value.
-
withType
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
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
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
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.
-