类 SecurityConfiguration
java.lang.Object
springfox.documentation.swagger.web.SecurityConfiguration
-
构造器概要
构造器构造器说明SecurityConfiguration(String clientId, String clientSecret, String realm, String appName, String scopeSeparator, Map<String, Object> additionalQueryStringParams, Boolean useBasicAuthenticationWithAccessCodeGrant) Default constructorSecurityConfiguration(String clientId, String clientSecret, String realm, String appName, String apiKey, ApiKeyVehicle apiKeyVehicle, String apiKeyName, String scopeSeparator) 已过时。 -
方法概要
-
构造器详细资料
-
SecurityConfiguration
@Deprecated public SecurityConfiguration(String clientId, String clientSecret, String realm, String appName, String apiKey, ApiKeyVehicle apiKeyVehicle, String apiKeyName, String scopeSeparator) 已过时。- 参数:
clientId- - client idclientSecret- - client secretrealm- - realmappName- - application nameapiKey- - api keyapiKeyVehicle- - how the api key is transmittedapiKeyName- - name of the api keyscopeSeparator- - scope separator- 从以下版本开始:
- 2.8.0. Use the
SecurityConfigurationBuilderinstead
-
SecurityConfiguration
public SecurityConfiguration(String clientId, String clientSecret, String realm, String appName, String scopeSeparator, Map<String, Object> additionalQueryStringParams, Boolean useBasicAuthenticationWithAccessCodeGrant) Default constructor- 参数:
clientId- Default clientId.clientSecret- Default clientSecret.realm- Realm query parameter (for oauth1) added to authorizationUrl and tokenUrl.appName- Application name, displayed in authorization popup.scopeSeparator- Scope separator for passing scopes, encoded before calling, default value is a space (encoded value %20).additionalQueryStringParams- Additional query parameters added to authorizationUrl and tokenUrl.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.
-
-
方法详细资料
-
getApiKey
已过时。- 返回:
- apiKey
- 从以下版本开始:
- 2.8.0
-
getApiKeyName
已过时。- 返回:
- apiKeyName
- 从以下版本开始:
- 2.8.0
-
getApiKeyVehicle
已过时。- 返回:
- apiKeyVehicle - header, cookie etc.
- 从以下版本开始:
- 2.8.0
-
getClientId
-
getClientSecret
-
getRealm
-
getAppName
-
scopeSeparator
-
getAdditionalQueryStringParams
-
getUseBasicAuthenticationWithAccessCodeGrant
-