public class OAuth1Profile extends Object implements PropertyExpansionContainer
Modifier and Type | Class and Description |
---|---|
static class |
OAuth1Profile.AccessTokenPosition |
static class |
OAuth1Profile.AccessTokenStatus |
static class |
OAuth1Profile.RefreshAccessTokenMethods |
Constructor and Description |
---|
OAuth1Profile(OAuth1ProfileContainer OAuth1ProfileContainer,
OAuth1ProfileConfig configuration) |
public static final String CLIENT_ID_PROPERTY
public static final String CLIENT_SECRET_PROPERTY
public static final String AUTHORIZATION_URI_PROPERTY
public static final String ACCESS_TOKEN_URI_PROPERTY
public static final String REDIRECT_URI_PROPERTY
public static final String ACCESS_TOKEN_PROPERTY
public static final String REFRESH_TOKEN_PROPERTY
public static final String SCOPE_PROPERTY
public static final String ACCESS_TOKEN_STATUS_PROPERTY
public static final String ACCESS_TOKEN_POSITION_PROPERTY
public static final String ACCESS_TOKEN_EXPIRATION_TIME
public static final String ACCESS_TOKEN_ISSUED_TIME
public static final String MANUAL_ACCESS_TOKEN_EXPIRATION_TIME
public static final String USE_MANUAL_ACCESS_TOKEN_EXPIRATION_TIME
public static final String REFRESH_ACCESS_TOKEN_METHOD_PROPERTY
public static final String MANUAL_ACCESS_TOKEN_EXPIRATION_TIME_UNIT_PROPERTY
public static final String TOKEN_SECRET_PROPERTY
public static final String TEMPORARY_TOKEN_URI_PROPERTY
public static final String CONSUMER_SECRET_PROPERTY
public static final String CONSUMER_KEY_PROPERTY
public static final String RESOURCE_OWNER_LOGIN_PROPERTY
public static final String RESOURCE_OWNER_PASSWORD_PROPERTY
public static final String TOKEN_SECRET_STATUS_PROPERTY
public OAuth1Profile(OAuth1ProfileContainer OAuth1ProfileContainer, OAuth1ProfileConfig configuration)
public String getName()
public void setName(String newName)
public void waitForAccessTokenStatus(AccessTokenStatusConfig.Enum accessTokenStatus, int timeout)
public void applyRetrievedAccessToken(String accessToken)
public String getAccessToken()
public void setAccessToken(String accessToken)
accessToken
- the access token supplied by the userpublic String getConsumerKey()
public void setConsumerKey(String consumerKey)
public String getTokenSecret()
public void setTokenSecret(String tokenSecret)
public String getTemporaryTokenURI()
public void setTemporaryTokenURI(String temporaryTokenURI)
public String getConsumerSecret()
public void setConsumerSecret(String consumerSecret)
public void resetTokenSecretStatusToStartingStatus()
public AccessTokenStatusConfig.Enum getTokenSecretStartingStatus()
public void setTokenSecretStartingStatus(AccessTokenStatusConfig.Enum startingStatus)
public AccessTokenStatusConfig.Enum getTokenSecretStatus()
public void setTokenSecretStatus(AccessTokenStatusConfig.Enum newStatus)
public String getAuthorizationURI()
public void setAuthorizationURI(String authorizationURI)
public String getRedirectURI()
public void setRedirectURI(String redirectURI)
public OAuth1ProfileConfig getConfiguration()
public String getAccessTokenURI()
public void setAccessTokenURI(String accessTokenURI)
public AccessTokenStatusConfig.Enum getAccessTokenStatus()
public void setAccessTokenStatus(AccessTokenStatusConfig.Enum newStatus)
public AccessTokenStatusConfig.Enum getAccessTokenStartingStatus()
public void resetAccessTokenStatusToStartingStatus()
public AccessTokenPositionConfig.Enum getAccessTokenPosition()
public void setAccessTokenPosition(@Nonnull AccessTokenPositionConfig.Enum newAccessTokenPosition)
public long getAccessTokenIssuedTime()
public void setAccessTokenIssuedTime(long newIssuedTime)
public String getManualAccessTokenExpirationTime()
public void setManualAccessTokenExpirationTime(@Nonnull String newExpirationTime)
public boolean useManualAccessTokenExpirationTime()
public void setUseManualAccessTokenExpirationTime(boolean useManual)
public TimeUnitConfig.Enum getManualAccessTokenExpirationTimeUnit()
public void setManualAccessTokenExpirationTimeUnit(TimeUnitConfig.Enum newValue)
public OAuth1ProfileContainer getContainer()
public PropertyExpansion[] getPropertyExpansions()
getPropertyExpansions
in interface PropertyExpansionContainer
public void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void applyRetrievedTokenSecret(String tokenSecret)
Copyright © 2019. All Rights Reserved.