public class GluonCredentials
extends java.lang.Object
Constructor and Description |
---|
GluonCredentials(java.io.InputStream inputStream)
Construct a credentials object that loads the application key and secret from
the provided input stream.
|
GluonCredentials(java.lang.String applicationKey,
java.lang.String applicationSecret)
Construct a credentials object with the specified application key and secret.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Get the public key of this application.
|
java.lang.String |
getSecret()
Get the secret key of this application.
|
public GluonCredentials(java.io.InputStream inputStream)
The content of the input stream is a JSON string containing the following keys and values:
{ "gluonCredentials": { "applicationKey": "APPLICATION_KEY", "applicationSecret": "APPLICATION_SECRET" } }
inputStream
- an input stream to read the credentials frompublic GluonCredentials(java.lang.String applicationKey, java.lang.String applicationSecret)
applicationKey
- the public key of the applicationapplicationSecret
- the secret key of the application