MicrosoftGraphKeyCredentialInner Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphKeyCredentialInner
- com.
Implements
public final class MicrosoftGraphKeyCredentialInner
implements JsonSerializable<MicrosoftGraphKeyCredentialInner>
keyCredential.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphKeyCredentialInner() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
byte[] |
customKeyIdentifier()
Get the custom |
String |
displayName()
Get the display |
Offset |
endDateTime()
Get the end |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
byte[] |
key()
Get the key property: The certificate's raw data in byte array converted to Base64 string; for example, [System. |
UUID |
keyId()
Get the key |
Offset |
startDateTime()
Get the start |
Json |
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. |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withCustomKeyIdentifier(byte[] customKeyIdentifier)
Set the custom |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withEndDateTime(OffsetDateTime endDateTime)
Set the end |
Microsoft |
withKey(byte[] key)
Set the key property: The certificate's raw data in byte array converted to Base64 string; for example, [System. |
Microsoft |
withKeyId(UUID keyId)
Set the key |
Microsoft |
withStartDateTime(OffsetDateTime startDateTime)
Set the start |
Microsoft |
withType(String type)
Set the type property: The type of key credential; for example, 'Symmetric'. |
Microsoft |
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
Get the additionalProperties property: keyCredential.
Returns:
customKeyIdentifier
public byte[] customKeyIdentifier()
Get the customKeyIdentifier property: Custom key identifier.
Returns:
displayName
public String displayName()
Get the displayName property: Friendly name for the key. Optional.
Returns:
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:
fromJson
public static MicrosoftGraphKeyCredentialInner fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphKeyCredentialInner from the JsonReader.
Parameters:
Returns:
Throws:
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:
keyId
public UUID keyId()
Get the keyId property: The unique identifier (GUID) for the key.
Returns:
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:
toJson
type
public String type()
Get the type property: The type of key credential; for example, 'Symmetric'.
Returns:
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:
validate
public void validate()
Validates the instance.
withAdditionalProperties
public MicrosoftGraphKeyCredentialInner withAdditionalProperties(Map
Set the additionalProperties property: keyCredential.
Parameters:
Returns:
withCustomKeyIdentifier
public MicrosoftGraphKeyCredentialInner withCustomKeyIdentifier(byte[] customKeyIdentifier)
Set the customKeyIdentifier property: Custom key identifier.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphKeyCredentialInner withDisplayName(String displayName)
Set the displayName property: Friendly name for the key. Optional.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withKeyId
public MicrosoftGraphKeyCredentialInner withKeyId(UUID keyId)
Set the keyId property: The unique identifier (GUID) for the key.
Parameters:
Returns:
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:
Returns:
withType
public MicrosoftGraphKeyCredentialInner withType(String type)
Set the type property: The type of key credential; for example, 'Symmetric'.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java