com.azure.security.attestation.models.AttestationData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-security-attestation Show documentation
Show all versions of azure-security-attestation Show documentation
This package contains Microsoft Azure SDK for the Microsoft Azure Attestation service.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.attestation.models;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.BinaryData;
/**
* The AttestationData class represents data sent to the Attestation service as either InitTimeData or
* RunTimeData.
*
*/
@Immutable
public final class AttestationData {
private final BinaryData data;
private final AttestationDataInterpretation interpretation;
/**
* Creates a new AttestationData object for the data and how it should be interpreted by the attestation
* service.
* @param data - Data to be set.
* @param interpretation - How the data should be interpreted.
*/
public AttestationData(BinaryData data, AttestationDataInterpretation interpretation) {
this.data = data;
this.interpretation = interpretation;
}
/**
* Copy constructor to create a new AttestationData object from an existing AttestationData object.
* @param that - AttestationData object to copy values from.
*/
public AttestationData(AttestationData that) {
this.data = that.data;
this.interpretation = that.interpretation;
}
/**
* Returns the data with which this {@link AttestationData} was created.
* @return The data configured for this object.
*/
public BinaryData getData() {
return data;
}
/**
* Returns the interpretation of this attestation data.
* @return The expected in interpretation for the data.
*/
public AttestationDataInterpretation getInterpretation() {
return interpretation;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy