SymmetricKeyAttestation Class

  • java.lang.Object
    • Attestation
      • com.microsoft.azure.sdk.iot.provisioning.service.configs.SymmetricKeyAttestation

public class SymmetricKeyAttestation extends Attestation,Serializable

Representation of a single Device Provisioning Service Symmetric Key Attestation.

The provisioning service supports Symmetric Key attestation as the device attestation mechanism. User can auto-generate the Primary and Secondary keys, or provide the values in Base64 format.

Constructor Summary

Constructor Description
SymmetricKeyAttestation(String primaryKey, String secondaryKey)

CONSTRUCTOR

This function will create a new instance of the Symmetric Key attestation with primary and secondary keys. Both the keys are mandatory.

SymmetricKeyAttestation(SymmetricKeyAttestation symmetricKeyAttestation)

CONSTRUCTOR (COPY)

This function will create a new instance of the Symmetric Key attestation copying the primaryKey and secondaryKey from the provided attestation.

Inherited Members

Constructor Details

SymmetricKeyAttestation

public SymmetricKeyAttestation(String primaryKey, String secondaryKey)

CONSTRUCTOR

This function will create a new instance of the Symmetric Key attestation with primary and secondary keys. Both the keys are mandatory.

Parameters:

primaryKey -

theString 

</code> with the Symmetric Key attestation primary key. If<code>null 

</code> , the service will generate the primary key. </p>
secondaryKey -

theString 

</code> with the Symmetric Key attestation secondary key. if<code>null 

</code> , the service will generate the secondary key. </p>

SymmetricKeyAttestation

public SymmetricKeyAttestation(SymmetricKeyAttestation symmetricKeyAttestation)

CONSTRUCTOR (COPY)

This function will create a new instance of the Symmetric Key attestation copying the primaryKey and secondaryKey from the provided attestation.

Parameters:

symmetricKeyAttestation -

the originalSymmetricKeyAttestation 

</code> to copy. If<code>null 

</code> , the service will generate the primary and secondary keys. </p>

Applies to