SymmetricKeyParser 类

定义

Store primary and secondary keys Provide function for key length validation

public class SymmetricKeyParser
继承
java.lang.Object
SymmetricKeyParser

构造函数

SymmetricKeyParser()

Empty constructor: Used only to keep GSON happy.

SymmetricKeyParser(String json)
SymmetricKeyParser(String primaryKey, String secondaryKey)

方法

getPrimaryKey()

Getter for PrimaryKey

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>as of Deps version 0.7.1, please use <xref uid="com.microsoft.azure.sdk.iot.deps.serializer.SymmetricKeyParser.getPrimaryKeyFinal()" data-throw-if-not-resolved="false" data-raw-source="getPrimaryKeyFinal()"></xref></p>

</xrefdescription>

getPrimaryKeyFinal()

Getter for PrimaryKey

getSecondaryKey()

Getter for SecondaryKey

<xreftitle>Deprecated</xreftitle>

<xrefdescription>

  <p>as of Deps version 0.7.1, please use <xref uid="com.microsoft.azure.sdk.iot.deps.serializer.SymmetricKeyParser.getSecondaryKeyFinal()" data-throw-if-not-resolved="false" data-raw-source="getSecondaryKeyFinal()"></xref></p>

</xrefdescription>

getSecondaryKeyFinal()

Getter for SecondaryKey

setPrimaryKey(String primaryKey)

Setter for PrimaryKey

setSecondaryKey(String secondaryKey)

Setter for SecondaryKey

toJson()

Converts this into json and returns it

适用于