SymmetricKeyAttestation Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. service. configs. Attestation - com.
microsoft. azure. sdk. iot. provisioning. service. configs. SymmetricKeyAttestation
- com.
- com.
public class SymmetricKeyAttestation
extends Attestation
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(SymmetricKeyAttestation symmetricKeyAttestation) |
CONSTRUCTOR (COPY) |
| SymmetricKeyAttestation(String primaryKey, String secondaryKey) |
CONSTRUCTOR |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getPrimaryKey()
Getter for the primary |
| java.lang.String |
getSecondaryKey()
Getter for the secondary |
Methods inherited from java.lang.Object
Constructor Details
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 to copy. If null, the service will generate the primary and secondary keys.
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:
String with the Symmetric Key attestation primary key. If null, the service will generate the primary key.
String with the Symmetric Key attestation secondary key. if null, the service will generate the secondary key.
Method Details
getPrimaryKey
public String getPrimaryKey()
Getter for the primaryKey.
Returns:
String with the stored primaryKey.getSecondaryKey
public String getSecondaryKey()
Getter for the secondaryKey.
Returns:
String with the stored secondaryKey.