public interface OAuthFlow extends Constructible, Extensible
Modifier and Type | Method and Description |
---|---|
OAuthFlow |
authorizationUrl(java.lang.String authorizationUrl)
The authorization URL to be used for this flow.
|
java.lang.String |
getAuthorizationUrl()
The authorization URL to be used for this flow.
|
java.lang.String |
getRefreshUrl()
The URL to be used for obtaining refresh tokens.
|
Scopes |
getScopes()
The available scopes for the OAuth2 security scheme.
|
java.lang.String |
getTokenUrl()
The token URL to be used for this flow.
|
OAuthFlow |
refreshUrl(java.lang.String refreshUrl)
The URL to be used for obtaining refresh tokens.
|
OAuthFlow |
scopes(Scopes scopes)
The available scopes for the OAuth2 security scheme.
|
void |
setAuthorizationUrl(java.lang.String authorizationUrl)
The authorization URL to be used for this flow.
|
void |
setRefreshUrl(java.lang.String refreshUrl)
The URL to be used for obtaining refresh tokens.
|
void |
setScopes(Scopes scopes)
The available scopes for the OAuth2 security scheme.
|
void |
setTokenUrl(java.lang.String tokenUrl)
The token URL to be used for this flow.
|
OAuthFlow |
tokenUrl(java.lang.String tokenUrl)
The token URL to be used for this flow.
|
addExtension, getExtensions, setExtensions
java.lang.String getAuthorizationUrl()
This method returns the authorizationUrl property from OAuthFlow instance.
void setAuthorizationUrl(java.lang.String authorizationUrl)
Applies to oauth2 ("implicit", "authorizationCode").
This method sets the authorizationUrl property of an OAuthFlow instance to the given authorizationUrl argument.
authorizationUrl
- the authorization URL used for this flowOAuthFlow authorizationUrl(java.lang.String authorizationUrl)
Applies to oauth2 ("implicit", "authorizationCode").
This method sets the authorizationUrl property of OAuthFlow instance to the given authorizationUrl argument and returns the modified instance.
authorizationUrl
- the authorization URL used for this flowjava.lang.String getTokenUrl()
This method returns the tokenUrl property from OAuthFlow instance.
void setTokenUrl(java.lang.String tokenUrl)
Applies to oauth2 ("password", "clientCredentials", "authorizationCode").
This method sets the tokenUrl property of OAuthFlow instance to the given tokenUrl argument.
tokenUrl
- the token URL to be used for this flowOAuthFlow tokenUrl(java.lang.String tokenUrl)
Applies to oauth2 ("password", "clientCredentials", "authorizationCode").
This method sets the tokenUrl property of OAuthFlow instance to the given tokenUrl argument and returns the instance.
tokenUrl
- the token URL to be used for this flowjava.lang.String getRefreshUrl()
This method returns the refreshUrl property from OAuthFlow instance.
void setRefreshUrl(java.lang.String refreshUrl)
Applies to oauth2.
This method sets the refreshUrl property of OAuthFlow instance to the given refreshUrl argument.
refreshUrl
- the URL to be used for obtaining refresh tokensOAuthFlow refreshUrl(java.lang.String refreshUrl)
Applies to oauth2.
This method sets the refreshUrl property of OAuthFlow instance to the given refreshUrl argument and returns the modified instance.
refreshUrl
- the URL to be used for obtaining refresh tokensScopes getScopes()
This method returns the scopes property from OAuthFlow instance.
void setScopes(Scopes scopes)
Applies to oauth2.
This method sets the scopes property of OAuthFlow instance to the given argument.
scopes
- the available scopes for the OAuth2 security schemeOAuthFlow scopes(Scopes scopes)
Applies to oauth2.
This method sets the scopes property of OAuthFlow instance to the given argument and returns the modified instance.
scopes
- the available scopes for the OAuth2 security scheme