@Metadata(label="rest,security") public class RestSecurityOAuth2 extends RestSecurityDefinition
Constructor and Description |
---|
RestSecurityOAuth2() |
RestSecurityOAuth2(RestDefinition rest) |
Modifier and Type | Method and Description |
---|---|
RestSecurityOAuth2 |
accessCode(String authorizationUrl,
String tokenUrl) |
RestSecurityOAuth2 |
application(String tokenUrl) |
RestSecurityOAuth2 |
authorizationUrl(String authorizationUrl) |
RestSecuritiesDefinition |
end() |
String |
getAuthorizationUrl() |
String |
getFlow() |
List<RestPropertyDefinition> |
getScopes() |
String |
getTokenUrl() |
RestSecurityOAuth2 |
password(String tokenUrl) |
void |
setAuthorizationUrl(String authorizationUrl)
The authorization URL to be used for this flow.
|
void |
setFlow(String flow)
The flow used by the OAuth2 security scheme.
|
void |
setScopes(List<RestPropertyDefinition> scopes)
The available scopes for an OAuth2 security scheme
|
void |
setTokenUrl(String tokenUrl)
The token URL to be used for this flow.
|
RestSecurityOAuth2 |
withScope(String key,
String description) |
endSecurityDefinition, getDescription, getKey, setDescription, setKey
public RestSecurityOAuth2()
public RestSecurityOAuth2(RestDefinition rest)
public String getAuthorizationUrl()
public void setAuthorizationUrl(String authorizationUrl)
public String getTokenUrl()
public void setTokenUrl(String tokenUrl)
public void setFlow(String flow)
public List<RestPropertyDefinition> getScopes()
public void setScopes(List<RestPropertyDefinition> scopes)
public RestSecurityOAuth2 authorizationUrl(String authorizationUrl)
public RestSecurityOAuth2 password(String tokenUrl)
public RestSecurityOAuth2 application(String tokenUrl)
public RestSecurityOAuth2 accessCode(String authorizationUrl, String tokenUrl)
public RestSecurityOAuth2 withScope(String key, String description)
public RestSecuritiesDefinition end()
Apache Camel