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 | 
|---|---|
| boolean | equals(Object other) | 
| java.lang.String | getPrimaryKey() Getter for primary key | 
| java.lang.String | getSecondaryKey() Getter for secondary key | 
| void | setPrimaryKey(String primaryKey) Deprecated 
										as of service-client version 1.15.1, please use setPrimaryKeyFinal(String primaryKey)
									 Setter for primary key Validates the length of the key | 
| final void | setPrimaryKeyFinal(String primaryKey) Setter for primary key Validates the length of the key | 
| void | setSecondaryKey(String secondaryKey) Deprecated 
										as of service-client version 1.15.1, please use setSecondaryKeyFinal(String secondaryKey)
									 Setter for secondary key Validates the length of the key | 
| final void | setSecondaryKeyFinal(String secondaryKey) Setter for secondary key Validates the length of the key | 
Methods inherited from java.lang.Object
Constructor Details
SymmetricKey
public SymmetricKey()
Constructor for initialization
Method Details
equals
public boolean equals(Object other)
Overrides:
SymmetricKey.equals(Object other)Parameters:
getPrimaryKey
public String getPrimaryKey()
Getter for primary key
Returns:
getSecondaryKey
public String getSecondaryKey()
Getter for secondary key
Returns:
setPrimaryKey
public void setPrimaryKey(String primaryKey)
Deprecated
Setter for primary key Validates the length of the key
Parameters:
setPrimaryKeyFinal
public final void setPrimaryKeyFinal(String primaryKey)
Setter for primary key Validates the length of the key
Parameters:
setSecondaryKey
public void setSecondaryKey(String secondaryKey)
Deprecated
Setter for secondary key Validates the length of the key
Parameters:
setSecondaryKeyFinal
public final void setSecondaryKeyFinal(String secondaryKey)
Setter for secondary key Validates the length of the key
Parameters: