SymmetricKey Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. auth. SymmetricKey
- com.
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:
getSecondaryKey
public String getSecondaryKey()
Getter for secondary key
Returns:
setPrimaryKey
public final void setPrimaryKey(String primaryKey)
Setter for primary key Validates the length of the key
Parameters:
setSecondaryKey
public final void setSecondaryKey(String secondaryKey)
Setter for secondary key Validates the length of the key
Parameters:
Applies to
Azure SDK for Java