| Modifier and Type | Method and Description |
|---|---|
| public OAuthFlow | |
| public default OAuthFlow | Returns: OAuthFlow instance with the set authorizationUrl propertythe authorization URL used for this flow authorizationUrl)The authorization URL to be used for this flow. |
| public String | Returns: String authorizationUrlThe authorization URL to be used for this flow. |
| public String | |
| public Map | Returns: a copy Map (potentially immutable) containing scopes and their descriptionsThe available scopes for the OAuth2 security scheme. |
| public String | |
| public default OAuthFlow | Returns: OAuthFlow instance with the set refreshUrl propertythe URL to be used for obtaining refresh tokens refreshUrl)The URL to be used for obtaining refresh tokens. |
| public void | |
| public default OAuthFlow | |
| public void | setAuthorizationUrl(String
the authorization URL used for this flow authorizationUrl)The authorization URL to be used for this flow. |
| public void | setRefreshUrl(String
the URL to be used for obtaining refresh tokens refreshUrl)The URL to be used for obtaining refresh tokens. |
| public void | |
| public void | setTokenUrl(String
the token URL to be used for this flow tokenUrl)The token URL to be used for this flow. |
| public default OAuthFlow |
| addScope | back to summary |
|---|---|
| public OAuthFlow addScope(String scope, String description) Adds name of an existing scope object and item parameters to scopes as a key-value pair in a map. | |
| authorizationUrl | back to summary |
|---|---|
| public default OAuthFlow authorizationUrl(String authorizationUrl) The authorization URL to be used for this flow. This MUST be in the form of a URL. This is a REQUIRED property. Applies to oauth2 ("implicit", "authorizationCode"). This method sets the authorizationUrl property of OAuthFlow instance to the given authorizationUrl argument and returns the modified instance. | |
| getAuthorizationUrl | back to summary |
|---|---|
| public String getAuthorizationUrl() The authorization URL to be used for this flow. This MUST be in the form of a URL. This is a REQUIRED property. This method returns the authorizationUrl property from OAuthFlow instance.
| |
| getRefreshUrl | back to summary |
|---|---|
| public String getRefreshUrl() The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. This method returns the refreshUrl property from OAuthFlow instance.
| |
| getScopes | back to summary |
|---|---|
| public Map The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. This is a REQUIRED property. This method returns the scopes property from OAuthFlow instance. | |
| getTokenUrl | back to summary |
|---|---|
| public String getTokenUrl() The token URL to be used for this flow. This MUST be in the form of a URL. This is a REQUIRED property. This method returns the tokenUrl property from OAuthFlow instance.
| |
| refreshUrl | back to summary |
|---|---|
| public default OAuthFlow refreshUrl(String refreshUrl) The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. Applies to oauth2. This method sets the refreshUrl property of OAuthFlow instance to the given refreshUrl argument and returns the modified instance. | |
| removeScope | back to summary |
|---|---|
| public void removeScope(String scope) Removes the given scope item to this scope mapping.
| |
| scopes | back to summary |
|---|---|
| public default OAuthFlow scopes(Map<String, String> scopes) The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. This is a REQUIRED property. Applies to oauth2. This method sets the scopes property of OAuthFlow instance to the given argument and returns the modified instance. | |
| setAuthorizationUrl | back to summary |
|---|---|
| public void setAuthorizationUrl(String authorizationUrl) The authorization URL to be used for this flow. This MUST be in the form of a URL. This is a REQUIRED property. Applies to oauth2 ("implicit", "authorizationCode"). This method sets the authorizationUrl property of an OAuthFlow instance to the given authorizationUrl argument.
| |
| setRefreshUrl | back to summary |
|---|---|
| public void setRefreshUrl(String refreshUrl) The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. Applies to oauth2. This method sets the refreshUrl property of OAuthFlow instance to the given refreshUrl argument.
| |
| setScopes | back to summary |
|---|---|
| public void setScopes(Map<String, String> scopes) The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. This is a REQUIRED property. Applies to oauth2. This method sets the scopes property of OAuthFlow instance to the given argument. | |
| setTokenUrl | back to summary |
|---|---|
| public void setTokenUrl(String tokenUrl) The token URL to be used for this flow. This MUST be in the form of a URL. This is a REQUIRED property. Applies to oauth2 ("password", "clientCredentials", "authorizationCode"). This method sets the tokenUrl property of OAuthFlow instance to the given tokenUrl argument.
| |
| tokenUrl | back to summary |
|---|---|
| public default OAuthFlow tokenUrl(String tokenUrl) The token URL to be used for this flow. This MUST be in the form of a URL. This is a REQUIRED property. Applies to oauth2 ("password", "clientCredentials", "authorizationCode"). This method sets the tokenUrl property of OAuthFlow instance to the given tokenUrl argument and returns the instance. | |