SymmetricKey Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.auth.SymmetricKey

public class SymmetricKey

Store primary and secondary keys Provide function for key length validation

Constructor Summary

Constructor Description
SymmetricKey()

Constructor for initialization

Method Summary

Modifier and Type Method and Description
String getPrimaryKey()

Getter for primary key

String getSecondaryKey()

Getter for secondary key

final void setPrimaryKey(String primaryKey)

Setter for primary key Validates the length of the key

final void setSecondaryKey(String secondaryKey)

Setter for secondary key Validates the length of the key

Constructor Details

SymmetricKey

public SymmetricKey()

Constructor for initialization

Method Details

getPrimaryKey

public String getPrimaryKey()

Getter for primary key

Returns:

Primary key part of the symmetric key

getSecondaryKey

public String getSecondaryKey()

Getter for secondary key

Returns:

Secondary key part of the symmetric key

setPrimaryKey

public final void setPrimaryKey(String primaryKey)

Setter for primary key Validates the length of the key

Parameters:

primaryKey - Primary key part of the symmetric key

setSecondaryKey

public final void setSecondaryKey(String secondaryKey)

Setter for secondary key Validates the length of the key

Parameters:

secondaryKey - Secondary key part of the symmetric key

Applies to