Class OAuth2Definition


  • @Metadata(label="rest,security,configuration")
    public class OAuth2Definition
    extends RestSecurityDefinition
    Rest security OAuth2 definition
    • Constructor Detail

      • OAuth2Definition

        public OAuth2Definition()
    • Method Detail

      • getAuthorizationUrl

        public String getAuthorizationUrl()
      • setAuthorizationUrl

        public void setAuthorizationUrl​(String authorizationUrl)
        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

        public String getTokenUrl()
      • setTokenUrl

        public void setTokenUrl​(String tokenUrl)
        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

        public String getRefreshUrl()
      • setRefreshUrl

        public void setRefreshUrl​(String refreshUrl)
        The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
      • getFlow

        public String getFlow()
      • setFlow

        public void setFlow​(String flow)
        The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode".