public class OAuth2Profile
Encapsulates values associated with an Oauth2 flow. Mostly they will be input by users, but the "accessToken" and "status" properties will be modified during the OAuth2 interactions.
Modifiers | Name | Description |
---|---|---|
enum |
OAuth2Profile.AccessTokenPosition |
|
enum |
OAuth2Profile.AccessTokenStatus |
|
enum |
OAuth2Profile.OAuth2Flow |
|
enum |
OAuth2Profile.RefreshAccessTokenMethods |
Constructor and description |
---|
OAuth2Profile
(OAuth2ProfileContainer oAuth2ProfileContainer, OAuth2ProfileConfig configuration) |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
|
void |
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener) |
|
void |
applyRetrievedAccessToken(java.lang.String accessToken) |
|
java.lang.String |
getAccessToken() |
|
long |
getAccessTokenExpirationTime() |
|
long |
getAccessTokenIssuedTime() |
|
OAuth2Profile.AccessTokenPosition |
getAccessTokenPosition() |
|
OAuth2Profile.AccessTokenStatus |
getAccessTokenStartingStatus() |
|
OAuth2Profile.AccessTokenStatus |
getAccessTokenStatus() |
|
java.lang.String |
getAccessTokenURI() |
|
java.lang.String |
getAuthorizationURI() |
|
java.util.List<java.lang.String> |
getAutomationJavaScripts() |
|
java.lang.String |
getClientID() |
|
java.lang.String |
getClientSecret() |
|
OAuth2ProfileConfig |
getConfiguration() |
|
OAuth2ProfileContainer |
getContainer() |
|
java.lang.String |
getManualAccessTokenExpirationTime() |
|
Enum |
getManualAccessTokenExpirationTimeUnit() |
|
java.lang.String |
getName() |
|
OAuth2Profile.OAuth2Flow |
getOAuth2Flow() |
|
PropertyExpansion[] |
getPropertyExpansions() |
|
java.lang.String |
getRedirectURI() |
|
OAuth2Profile.RefreshAccessTokenMethods |
getRefreshAccessTokenMethod() |
|
java.lang.String |
getRefreshToken() |
|
java.lang.String |
getResourceOwnerName() |
|
java.lang.String |
getResourceOwnerPassword() |
|
java.lang.String |
getScope() |
|
boolean |
hasAutomationJavaScripts() |
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
|
void |
removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener) |
|
void |
resetAccessTokenStatusToStartingStatus() |
|
void |
setAccessToken(java.lang.String accessToken) NOTE: This setter should only be used from the GUI, because it also sets the property "accessTokenStatus" to ENTERED_MANUALLY |
|
void |
setAccessTokenExpirationTime(long newExpirationTime) |
|
void |
setAccessTokenIssuedTime(long newIssuedTime) |
|
void |
setAccessTokenPosition(OAuth2Profile.AccessTokenPosition newAccessTokenPosition) |
|
void |
setAccessTokenStatus(OAuth2Profile.AccessTokenStatus newStatus) |
|
void |
setAccessTokenURI(java.lang.String accessTokenURI) |
|
void |
setAuthorizationURI(java.lang.String authorizationURI) |
|
void |
setAutomationJavaScripts(java.util.List<java.lang.String> javaScripts) |
|
void |
setClientID(java.lang.String clientID) |
|
void |
setClientSecret(java.lang.String clientSecret) |
|
void |
setManualAccessTokenExpirationTime(java.lang.String newExpirationTime) |
|
void |
setManualAccessTokenExpirationTimeUnit(Enum newValue) |
|
void |
setName(java.lang.String newName) |
|
void |
setOAuth2Flow(OAuth2Profile.OAuth2Flow oauth2Flow) |
|
void |
setRedirectURI(java.lang.String redirectURI) |
|
void |
setRefreshAccessTokenMethod(OAuth2Profile.RefreshAccessTokenMethods newRefreshAccessTokenMethod) |
|
void |
setRefreshToken(java.lang.String refreshToken) |
|
void |
setResourceOwnerName(java.lang.String resourceOwnerName) |
|
void |
setResourceOwnerPassword(java.lang.String resourceOwnerPassword) |
|
void |
setScope(java.lang.String scope) |
|
void |
setUseManualAccessTokenExpirationTime(boolean useManual) |
|
boolean |
shouldReloadAccessTokenAutomatically() |
|
boolean |
useManualAccessTokenExpirationTime() |
|
void |
waitForAccessTokenStatus(OAuth2Profile.AccessTokenStatus accessTokenStatus, int timeout) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
NOTE: This setter should only be used from the GUI, because it also sets the property "accessTokenStatus" to ENTERED_MANUALLY
accessToken
- the access token supplied by the user