public class SymmetricKeyAttestation extends 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 and Description |
|---|
SymmetricKeyAttestation(String primaryKey,
String secondaryKey)
CONSTRUCTOR
|
SymmetricKeyAttestation(SymmetricKeyAttestation symmetricKeyAttestation)
CONSTRUCTOR (COPY)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPrimaryKey()
Getter for the primaryKey.
|
String |
getSecondaryKey()
Getter for the secondaryKey.
|
public SymmetricKeyAttestation(String primaryKey, String secondaryKey)
This function will create a new instance of the Symmetric Key attestation with primary and secondary keys. Both the keys are mandatory.
primaryKey - the String with the Symmetric Key attestation primary key. If null, the service will generate the primary key.secondaryKey - the String with the Symmetric Key attestation secondary key. if null, the service will generate the secondary key.public SymmetricKeyAttestation(SymmetricKeyAttestation symmetricKeyAttestation)
This function will create a new instance of the Symmetric Key attestation copying the primaryKey and secondaryKey from the provided attestation.
symmetricKeyAttestation - the original SymmetricKeyAttestation to copy. If null, the service will generate the primary and secondary keys.Copyright © 2021. All rights reserved.