public class OAuth2Profile extends Object implements PropertyExpansionContainer
Modifier and Type | Class and Description |
---|---|
static class |
OAuth2Profile.AccessTokenPosition |
static class |
OAuth2Profile.AccessTokenStatus |
static class |
OAuth2Profile.OAuth2Flow |
static class |
OAuth2Profile.RefreshAccessTokenMethods |
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_TOKEN_EXPIRATION_TIME |
static String |
ACCESS_TOKEN_ISSUED_TIME |
static String |
ACCESS_TOKEN_POSITION_PROPERTY |
static String |
ACCESS_TOKEN_PROPERTY |
static String |
ACCESS_TOKEN_STATUS_PROPERTY |
static String |
ACCESS_TOKEN_URI_PROPERTY |
static String |
AUTHORIZATION_URI_PROPERTY |
static String |
CLIENT_ID_PROPERTY |
static String |
CLIENT_SECRET_PROPERTY |
static String |
JAVA_SCRIPTS_PROPERTY |
static String |
MANUAL_ACCESS_TOKEN_EXPIRATION_TIME |
static String |
MANUAL_ACCESS_TOKEN_EXPIRATION_TIME_UNIT_PROPERTY |
static String |
OAUTH2_FLOW_PROPERTY |
static String |
REDIRECT_URI_PROPERTY |
static String |
REFRESH_ACCESS_TOKEN_METHOD_PROPERTY |
static String |
REFRESH_TOKEN_PROPERTY |
static String |
RESOURCE_OWNER_LOGIN_PROPERTY |
static String |
RESOURCE_OWNER_PASSWORD_PROPERTY |
static String |
SCOPE_PROPERTY |
static String |
USE_MANUAL_ACCESS_TOKEN_EXPIRATION_TIME |
Constructor and Description |
---|
OAuth2Profile(OAuth2ProfileContainer oAuth2ProfileContainer,
OAuth2ProfileConfig 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 OAUTH2_FLOW_PROPERTY
public static final String JAVA_SCRIPTS_PROPERTY
public static final String MANUAL_ACCESS_TOKEN_EXPIRATION_TIME_UNIT_PROPERTY
public static final String RESOURCE_OWNER_LOGIN_PROPERTY
public static final String RESOURCE_OWNER_PASSWORD_PROPERTY
public OAuth2Profile(OAuth2ProfileContainer oAuth2ProfileContainer, OAuth2ProfileConfig configuration)
public void waitForAccessTokenStatus(OAuth2Profile.AccessTokenStatus accessTokenStatus, int timeout)
public String getName()
public void setName(String newName)
public boolean hasAutomationJavaScripts()
public void applyRetrievedAccessToken(String accessToken)
public String getAccessToken()
public void setAccessToken(String accessToken)
accessToken
- the access token supplied by the userpublic void setOAuth2Flow(OAuth2Profile.OAuth2Flow oauth2Flow)
public OAuth2Profile.OAuth2Flow getOAuth2Flow()
public String getRefreshToken()
public void setRefreshToken(String refreshToken)
public String getAuthorizationURI()
public void setAuthorizationURI(String authorizationURI)
public String getClientID()
public void setClientID(String clientID)
public String getClientSecret()
public void setClientSecret(String clientSecret)
public String getResourceOwnerName()
public void setResourceOwnerName(String resourceOwnerName)
public String getResourceOwnerPassword()
public void setResourceOwnerPassword(String resourceOwnerPassword)
public String getRedirectURI()
public void setRedirectURI(String redirectURI)
public String getScope()
public void setScope(String scope)
public OAuth2ProfileConfig getConfiguration()
public String getAccessTokenURI()
public void setAccessTokenURI(String accessTokenURI)
public OAuth2Profile.AccessTokenStatus getAccessTokenStatus()
public void setAccessTokenStatus(OAuth2Profile.AccessTokenStatus newStatus)
public OAuth2Profile.AccessTokenStatus getAccessTokenStartingStatus()
public void resetAccessTokenStatusToStartingStatus()
public OAuth2Profile.AccessTokenPosition getAccessTokenPosition()
public void setAccessTokenPosition(@Nonnull OAuth2Profile.AccessTokenPosition newAccessTokenPosition)
public OAuth2Profile.RefreshAccessTokenMethods getRefreshAccessTokenMethod()
public void setRefreshAccessTokenMethod(@Nonnull OAuth2Profile.RefreshAccessTokenMethods newRefreshAccessTokenMethod)
public long getAccessTokenExpirationTime()
public void setAccessTokenExpirationTime(long newExpirationTime)
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 boolean shouldReloadAccessTokenAutomatically()
public OAuth2ProfileContainer 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)
Copyright © 2019. All Rights Reserved.