你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: