Package org.apache.camel.model.rest
Class OAuth2Definition
java.lang.Object
org.apache.camel.model.rest.RestSecurityDefinition
org.apache.camel.model.rest.OAuth2Definition
@Metadata(label="rest,security,configuration")
public class OAuth2Definition
extends RestSecurityDefinition
Rest security OAuth2 definition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessCode
(String authorizationUrl, String tokenUrl) application
(String tokenUrl) authorizationCode
(String authorizationUrl, String tokenUrl) authorizationUrl
(String authorizationUrl) clientCredentials
(String tokenUrl) end()
getFlow()
refreshUrl
(String refreshUrl) void
setAuthorizationUrl
(String authorizationUrl) The authorization URL to be used for this flow.void
The flow used by the OAuth2 security scheme.void
setRefreshUrl
(String refreshUrl) The URL to be used for obtaining refresh tokens.void
setScopes
(List<RestPropertyDefinition> scopes) The available scopes for an OAuth2 security schemevoid
setTokenUrl
(String tokenUrl) The token URL to be used for this flow.Methods inherited from class org.apache.camel.model.rest.RestSecurityDefinition
endSecurityDefinition, getDescription, getKey, setDescription, setKey
-
Constructor Details
-
OAuth2Definition
public OAuth2Definition() -
OAuth2Definition
-
-
Method Details
-
getAuthorizationUrl
-
setAuthorizationUrl
The authorization URL to be used for this flow. This SHOULD be in the form of a URL. Required for implicit and access code flows -
getTokenUrl
-
setTokenUrl
The token URL to be used for this flow. This SHOULD be in the form of a URL. Required for password, application, and access code flows. -
getRefreshUrl
-
setRefreshUrl
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. -
getFlow
-
setFlow
The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode". -
getScopes
-
setScopes
The available scopes for an OAuth2 security scheme -
flow
-
authorizationUrl
-
tokenUrl
-
refreshUrl
-
password
-
application
-
clientCredentials
-
accessCode
-
authorizationCode
-
withScope
-
end
-