public final class AccessToken extends Object
Constructor and Description |
---|
AccessToken(String token,
byte[] accessTokenSecret)
Create a new access token with secret defined as byte array.
|
AccessToken(String token,
String accessTokenSecret)
Create a new access token.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAccessTokenSecret()
Get the access token secret.
|
byte[] |
getAccessTokenSecretAsByteArray()
Get the access token secret in byte arrays (in default encoding).
|
String |
getToken()
Get the access token.
|
int |
hashCode() |
public AccessToken(String token, String accessTokenSecret)
token
- Access token.accessTokenSecret
- Access token secret.public AccessToken(String token, byte[] accessTokenSecret)
token
- Access token.accessTokenSecret
- Access token secret as byte array in the default encoding.public String getToken()
public String getAccessTokenSecret()
public byte[] getAccessTokenSecretAsByteArray()
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.