public final class ConsumerCredentials extends Object
Constructor and Description |
---|
ConsumerCredentials(String consumerKey,
byte[] consumerSecret)
Create a new consumer credentials with secret defined as byte array.
|
ConsumerCredentials(String consumerKey,
String consumerSecret)
Create new consumer credentials.
|
Modifier and Type | Method and Description |
---|---|
String |
getConsumerKey()
Get consumer key.
|
String |
getConsumerSecret()
Get consumer secret.
|
byte[] |
getConsumerSecretAsByteArray()
Get consumer secret as a byte array (in default encoding).
|
public ConsumerCredentials(String consumerKey, String consumerSecret)
consumerKey
- Consumer key.consumerSecret
- Consumer secret.public ConsumerCredentials(String consumerKey, byte[] consumerSecret)
consumerKey
- Consumer key.consumerSecret
- Consumer secret as byte array in the default encoding.public String getConsumerKey()
public String getConsumerSecret()
public byte[] getConsumerSecretAsByteArray()
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.