Package com.microsoft.graph.models
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 Summary
FieldsModifier and TypeFieldDescriptionbyte[]
The Custom Key Identifier.The Display Name.The End Date Time.byte[]
The Key.The Key Id.the OData type of the object as returned by the serviceThe Start Date Time.The Type.The Usage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal com.microsoft.graph.serializer.AdditionalDataManager
void
setRawObject
(com.microsoft.graph.serializer.ISerializer serializer, com.google.gson.JsonObject json) Sets the raw JSON object
-
Field Details
-
oDataType
the OData type of the object as returned by the service -
customKeyIdentifier
@SerializedName(value="customKeyIdentifier", alternate="CustomKeyIdentifier") @Expose @Nullable public byte[] customKeyIdentifierThe Custom Key Identifier. Custom key identifier -
displayName
@SerializedName(value="displayName", alternate="DisplayName") @Expose @Nullable public String displayNameThe Display Name. Friendly name for the key. Optional. -
endDateTime
@SerializedName(value="endDateTime", alternate="EndDateTime") @Expose @Nullable public OffsetDateTime endDateTimeThe 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[] keyThe 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
The Key Id. The unique identifier for the key. -
startDateTime
@SerializedName(value="startDateTime", alternate="StartDateTime") @Expose @Nullable public OffsetDateTime startDateTimeThe 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
The Type. The type of key credential; for example, Symmetric, AsymmetricX509Cert. -
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 interfacecom.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 interfacecom.microsoft.graph.serializer.IJsonBackedObject
- Parameters:
serializer
- the serializerjson
- the JSON object to set this object to
-