public class Uplink
extends java.lang.Object
Constructor and Description |
---|
Uplink(UplinkOption... options) |
Modifier and Type | Method and Description |
---|---|
Project |
openProject(Access access)
|
Access |
requestAccessWithPassphrase(java.lang.String satelliteAddress,
java.lang.String apiKey,
java.lang.String passphrase)
Generates a new access grant using a passhprase.
|
public Uplink(UplinkOption... options)
public Project openProject(Access access) throws StorjException
access
- an access grant, see Access
Project
handleStorjException
- in case of errorpublic Access requestAccessWithPassphrase(java.lang.String satelliteAddress, java.lang.String apiKey, java.lang.String passphrase) throws StorjException
Note: this is a CPU-heavy function that uses a password-based key derivation function (Argon2). This should be a setup-only step. Most common interactions with the library should be using a serialized access grant through ParseAccess directly.
satelliteAddress
- the satellite addressapiKey
- the api keypassphrase
- the passphraseStorjException
- in case of error