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
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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SymmetricKey

public SymmetricKey()

Constructor for initialization

Method Details

equals

public boolean equals(Object other)

Overrides:

SymmetricKey.equals(Object other)

Parameters:

other

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 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

Parameters:

primaryKey - Primary key part of the symmetric key

setPrimaryKeyFinal

public final void setPrimaryKeyFinal(String primaryKey)

Setter for primary key Validates the length of the key

Parameters:

primaryKey - Primary key part of the symmetric key

setSecondaryKey


public 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

Parameters:

secondaryKey - Secondary key part of the symmetric key

setSecondaryKeyFinal

public final void setSecondaryKeyFinal(String secondaryKey)

Setter for secondary key Validates the length of the key

Parameters:

secondaryKey - Secondary key part of the symmetric key

Applies to