|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.client.oauth1.ConsumerCredentials
public final class ConsumerCredentials
Consumer credentials class (credentials issued by the Service Provider for the application). The class stores client secret as byte array to improve security.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
String |
getConsumerKey()
Get consumer key. |
String |
getConsumerSecret()
Get consumer secret. |
byte[] |
getConsumerSecretAsByteArray()
Get consumer secret as a byte array (in default encoding). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public String getConsumerKey()
public String getConsumerSecret()
public byte[] getConsumerSecretAsByteArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||