RegistryIdentity Class

  • java.lang.Object
    • com.microsoft.azure.sdk.iot.service.registry.RegistryIdentity

public class RegistryIdentity

The RegistryIdentity class implementing constructors and serialization functionality.

Method Summary

Modifier and Type Method and Description
AuthenticationType getAuthenticationType()

Getter for the authentication type of this device

String getPrimaryKey()

Getter for PrimaryKey part of the SymmetricKey

String getPrimaryThumbprint()

Getter for primary thumbprint part of the whole thumbprint

String getSecondaryKey()

Getter for SecondaryKey part of the SymmetricKey

String getSecondaryThumbprint()

Getter for secondary thumbprint part of the whole thumbprint

SymmetricKey getSymmetricKey()

Getter for SymmetricKey object

void setSymmetricKey(SymmetricKey symmetricKey)

Setter for SymmetricKey object

final void setThumbprint(String primaryThumbprint, String secondaryThumbprint)

Setter for X509 thumbprint

Method Details

getAuthenticationType

public AuthenticationType getAuthenticationType()

Getter for the authentication type of this device

Returns:

the authentication type

getPrimaryKey

public String getPrimaryKey()

Getter for PrimaryKey part of the SymmetricKey

Returns:

The primaryKey string

getPrimaryThumbprint

public String getPrimaryThumbprint()

Getter for primary thumbprint part of the whole thumbprint

Returns:

The primary thumbprint string

getSecondaryKey

public String getSecondaryKey()

Getter for SecondaryKey part of the SymmetricKey

Returns:

The secondaryKey string

getSecondaryThumbprint

public String getSecondaryThumbprint()

Getter for secondary thumbprint part of the whole thumbprint

Returns:

The secondary thumbprint string

getSymmetricKey

public SymmetricKey getSymmetricKey()

Getter for SymmetricKey object

Returns:

The symmetricKey object

setSymmetricKey

public void setSymmetricKey(SymmetricKey symmetricKey)

Setter for SymmetricKey object

Parameters:

symmetricKey - symmetricKey to be set

Throws:

IllegalArgumentException - if the provided symmetric key is null

setThumbprint

public final void setThumbprint(String primaryThumbprint, String secondaryThumbprint)

Setter for X509 thumbprint

Parameters:

primaryThumbprint - the primary thumbprint to set
secondaryThumbprint - the secondary thumbprint to set

Throws:

IllegalArgumentException - if primaryThumbprint or secondaryThumbprint is null or empty

Applies to