Package com.ironcorelabs.sdk
Class DeviceContext
- java.lang.Object
-
- com.ironcorelabs.sdk.DeviceContext
-
public final class DeviceContext extends java.lang.Object
Account's device context. Needed to initialize the Sdk with a set of device keys. See `Sdk.initialize()`
-
-
Constructor Summary
Constructors Constructor Description DeviceContext(DeviceAddResult dar)
DeviceContext(UserId accountId, long segmentId, PrivateKey devicePrivateKey, DeviceSigningKeyPair signingPrivateKey)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
boolean
equals(java.lang.Object obj)
protected void
finalize()
static DeviceContext
fromJsonString(java.lang.String jsonString)
UserId
getAccountId()
PrivateKey
getDevicePrivateKey()
long
getSegmentId()
DeviceSigningKeyPair
getSigningPrivateKey()
int
hashCode()
java.lang.String
toJsonString()
-
-
-
Constructor Detail
-
DeviceContext
public DeviceContext(UserId accountId, long segmentId, PrivateKey devicePrivateKey, DeviceSigningKeyPair signingPrivateKey)
-
DeviceContext
public DeviceContext(DeviceAddResult dar)
-
-
Method Detail
-
getAccountId
public final UserId getAccountId()
-
getSegmentId
public final long getSegmentId()
-
getDevicePrivateKey
public final PrivateKey getDevicePrivateKey()
-
getSigningPrivateKey
public final DeviceSigningKeyPair getSigningPrivateKey()
-
toJsonString
public final java.lang.String toJsonString()
-
fromJsonString
public static DeviceContext fromJsonString(java.lang.String jsonString) throws java.lang.Exception
- Throws:
java.lang.Exception
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
delete
public void delete()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-