Class SecurityConfigurationBuilder
- java.lang.Object
-
- springfox.documentation.swagger.web.SecurityConfigurationBuilder
-
public class SecurityConfigurationBuilder extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityConfigurationBuilder
additionalQueryStringParams(java.util.Map<java.lang.String,java.lang.Object> additionalQueryStringParams)
SecurityConfigurationBuilder
appName(java.lang.String appName)
SecurityConfiguration
build()
static SecurityConfigurationBuilder
builder()
SecurityConfigurationBuilder
clientId(java.lang.String clientId)
SecurityConfigurationBuilder
clientSecret(java.lang.String clientSecret)
SecurityConfigurationBuilder
copyOf(SecurityConfiguration other)
SecurityConfigurationBuilder
enableCsrfSupport(java.lang.Boolean enableCsrfSupport)
SecurityConfigurationBuilder
realm(java.lang.String realm)
SecurityConfigurationBuilder
scopeSeparator(java.lang.String scopeSeparator)
SecurityConfigurationBuilder
useBasicAuthenticationWithAccessCodeGrant(java.lang.Boolean useBasicAuthenticationWithAccessCodeGrant)
-
-
-
Method Detail
-
builder
public static SecurityConfigurationBuilder builder()
-
build
public SecurityConfiguration build()
-
clientId
public SecurityConfigurationBuilder clientId(java.lang.String clientId)
- Parameters:
clientId
- Default clientId.- Returns:
- this
-
clientSecret
public SecurityConfigurationBuilder clientSecret(java.lang.String clientSecret)
- Parameters:
clientSecret
- Default clientSecret.- Returns:
- this
-
realm
public SecurityConfigurationBuilder realm(java.lang.String realm)
- Parameters:
realm
- Realm query parameter (for oauth1) added to authorizationUrl and tokenUrl.- Returns:
- this
-
appName
public SecurityConfigurationBuilder appName(java.lang.String appName)
- Parameters:
appName
- Application name, displayed in authorization popup.- Returns:
- this
-
scopeSeparator
public SecurityConfigurationBuilder scopeSeparator(java.lang.String scopeSeparator)
- Parameters:
scopeSeparator
- Scope separator for passing scopes, encoded before calling, default value is a space (encoded value %20).- Returns:
- this
-
additionalQueryStringParams
public SecurityConfigurationBuilder additionalQueryStringParams(java.util.Map<java.lang.String,java.lang.Object> additionalQueryStringParams)
- Parameters:
additionalQueryStringParams
- Additional query parameters added to authorizationUrl and tokenUrl.- Returns:
- this
-
useBasicAuthenticationWithAccessCodeGrant
public SecurityConfigurationBuilder useBasicAuthenticationWithAccessCodeGrant(java.lang.Boolean useBasicAuthenticationWithAccessCodeGrant)
- Parameters:
useBasicAuthenticationWithAccessCodeGrant
- Only activated for the accessCode flow. During the authorization_code request to the tokenUrl, pass the Client Password using the HTTP Basic Authentication scheme (Authorization header with Basic base64encoded[client_id:client_secret]). The default is false.- Returns:
- this
-
enableCsrfSupport
public SecurityConfigurationBuilder enableCsrfSupport(java.lang.Boolean enableCsrfSupport)
- Parameters:
enableCsrfSupport
- Try to find csrf token and add it to the header of all requests by patching the requestInterceptor.- Returns:
- this
-
copyOf
public SecurityConfigurationBuilder copyOf(SecurityConfiguration other)
-
-