1.0.0 (2022-02-08)
Breaking Changes
- Removed
buildSigningCertificatesClient
andbuildSigningCertificatesAsyncClient
replaced
withgetAttestationSigners
andgetAttestationSignersWithResponse
onAttestationClient
andAttestationAsyncClient
. - Removed
buildMetadataConfigurationClient
andbuildMetadataConfigurationAsyncClient
APIget
API becomesgetMetadataConfiguration
onAttestationClient
getWithResponse
becomesgetMetadataConfigurationWithResponse
getAsync
becomesgetMetadataConfiguration
onAttestationAsyncClient
.getWithResponseAsync
becomesgetMetadataConfigurationWithResponse
onAttestationAsyncClient
.
- Removed
InitTimeData
,RunTimeData
, andDataType
types- All functionality incorporated into
AttestOpenEnclaveRequest
andAttestSgxEnclaveRequest
- All functionality incorporated into
- Changed function signature for
AttestOpenEnclaveRequest
andAttestSgxEnclaveRequest
.- Changed
setInitTimeData
to accept abyte[]
instead of aInitTimeData
.
setInitTimeData
sets a binaryInitTime
data value. - Added
setInitTimeJson
which takes abyte[]
and sets the
InitTime
data as JSON. - Similarly,
setRunTimeData
was changed to accept abyte[]
. - And
setRunTimeJson
was added to set theRunTimeData
as JSON.
- Changed
- Renamed
AttestOpenEnclaveRequest
toAttestOpenEnclaveOptions
andAttestSgxEnclaveRequest
toAttestSgxEnclaveOptions
. - Instead of being directly instantiated,
AttestOpenEnclaveOptions
andAttestSgxEnclaveOptions
are instantiated via a
factory method:
AttestSgxEnclaveOptions options = AttestSgxEnclaveOptions
.fromQuote(decodedSgxEnclaveReport)
.setRunTimeData(new byte[] { 1, 2, 3, 4, 5});
or
AttestOpenEnclaveOptions options = AttestOpenEnclaveOptions
.fromQuote(decodedOpenEnclaveReport)
.setRunTimeJson("{ \"xxx\": 123 }".getBytes(StandardCharsets.UTF_8))
attestSgxEnclave
andattestOpenEnclave
return anAttestationResponse
type instead of
aResponse
type to get access to theAttestationToken
returned from the attestation service.- Converted the
AttestationToken
andAttestationSigner
types to interfaces since there are no scenarios where customers
will instantiate them directly. - Renamed
buildAttestationClient
tobuildClient
andbuildAsyncAttestationClient
tobuildAsyncClient
to match API
design guidelines. - Removed
buildPolicyClient
,buildPolicyAsyncClient
,buildPolicyCertificatesClient
andbuildPolicyCertificatesAsyncClient
methods
on theAttestationClientBuilder
class and implemented a newAttestationAdministrationClient
class which contains the administrative APIs. - Removed
buildPolicyCertificatesClient
andbuildPolicyCertificatesAsyncClient
, andPolicyCertificatesClient
andPolicyCertificatesAsyncClient
replacing the functionality
with thelistPolicyManagementCertificates
,addPolicyManagementCertificate
andremovePolicyManagementCertificate
APIs on theAttestationAdministrationClient
object. - Removed
JsonWebKey
,JsonWebKeySet
,PolicyCertificatesModificationResult
,PolicyCertificatesModifyResponse
, andCertificatesResponse
objects
because they are no longer a part of the public API surface. - Refactored
AttestationSigningKey
class to require certificate and signing key parameters in constructor. - listAttestationSigners now returns an
AttestationSignersCollection
object instead of a rawList<AttestationSigner>
Bugs Fixed
- Attestation tests now all pass when run in Live mode.