public static class CognitoDeviceHelper.deviceSRP extends Object
| Constructor and Description |
|---|
deviceSRP(String deviceGroupKey,
String deviceKey,
String password)
Helps to start the SRP validation of the device.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
begin()
Start byte digest for SRP.
|
static byte[] |
end()
Complete digest.
|
BigInteger |
getSalt() |
BigInteger |
getVerifier()
Returns the generated verifier.
|
static void |
update(BigInteger... bigInts)
Adds a series of BigIntegers to the digest.
|
static void |
update(BigInteger n)
Adds a BigInteger to the digest.
|
static void |
update(byte[] b)
Adds a byte array to the digest.
|
static void |
update(ByteBuffer b)
Adds the contents of a byte-buffer to the digest.
|
static void |
update(String... strings)
Adds a series of strings to the digest.
|
static void |
update(String s)
Adds a string to the digest.
|
public deviceSRP(String deviceGroupKey, String deviceKey, String password)
deviceGroupKey - REQUIRED: Group assigned to the device.deviceKey - REQUIRED: Unique identifier assigned to the device.password - REQUIRED: The device password.public BigInteger getSalt()
public BigInteger getVerifier()
public static void begin()
public static byte[] end()
public static void update(String... strings)
strings - REQUIRED: Strings to add.public static void update(String s)
s - REQUIRED: String to add.public static void update(BigInteger... bigInts)
bigInts - REQUIRED: Numbers to add.public static void update(BigInteger n)
n - REQUIRED: The number to add.public static void update(ByteBuffer b)
b - REQUIRED: bytes to add.public static void update(byte[] b)
b - REQUIRED: bytes to add.Copyright © 2020. All rights reserved.