Partager via


MicrosoftGraphKeyCredentialInner Class

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

Implements

public final class MicrosoftGraphKeyCredentialInner
implements JsonSerializable<MicrosoftGraphKeyCredentialInner>

keyCredential.

Constructor Summary

Constructor Description
MicrosoftGraphKeyCredentialInner()

Creates an instance of MicrosoftGraphKeyCredentialInner class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: keyCredential.

byte[] customKeyIdentifier()

Get the customKeyIdentifier property: Custom key identifier.

String displayName()

Get the displayName property: Friendly name for the key.

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.

static MicrosoftGraphKeyCredentialInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphKeyCredentialInner from the JsonReader.

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()).

UUID keyId()

Get the keyId property: The unique identifier (GUID) for the key.

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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of key credential; for example, 'Symmetric'.

String usage()

Get the usage property: A string that describes the purpose for which the key can be used; for example, 'Verify'.

void validate()

Validates the instance.

MicrosoftGraphKeyCredentialInner withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: keyCredential.

MicrosoftGraphKeyCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier)

Set the customKeyIdentifier property: Custom key identifier.

MicrosoftGraphKeyCredentialInner withDisplayName(String displayName)

Set the displayName property: Friendly name for the key.

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.

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()).

MicrosoftGraphKeyCredentialInner withKeyId(UUID keyId)

Set the keyId property: The unique identifier (GUID) for the key.

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.

MicrosoftGraphKeyCredentialInner withType(String type)

Set the type property: The type of key credential; for example, 'Symmetric'.

MicrosoftGraphKeyCredentialInner withUsage(String usage)

Set the usage property: A string that describes the purpose for which the key can be used; for example, 'Verify'.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphKeyCredentialInner

public MicrosoftGraphKeyCredentialInner()

Creates an instance of MicrosoftGraphKeyCredentialInner class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: keyCredential.

Returns:

the additionalProperties value.

customKeyIdentifier

public byte[] customKeyIdentifier()

Get the customKeyIdentifier property: Custom key identifier.

Returns:

the customKeyIdentifier value.

displayName

public String displayName()

Get the displayName property: Friendly name for the key. Optional.

Returns:

the displayName value.

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.

fromJson

public static MicrosoftGraphKeyCredentialInner fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphKeyCredentialInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphKeyCredentialInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphKeyCredentialInner.

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.

keyId

public UUID keyId()

Get the keyId property: The unique identifier (GUID) for the key.

Returns:

the keyId value.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of key credential; for example, 'Symmetric'.

Returns:

the type value.

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.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphKeyCredentialInner withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: keyCredential.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphKeyCredentialInner object itself.

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.

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.

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.

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.

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.

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.

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.

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.

Applies to