Package org.springdoc.core
Class SwaggerUiOAuthProperties
- java.lang.Object
-
- org.springdoc.core.SwaggerUiOAuthProperties
-
@Lazy(false) @Configuration(proxyBeanMethods=false) @ConfigurationProperties(prefix="springdoc.swagger-ui.oauth") @ConditionalOnProperty(name="springdoc.swagger-ui.enabled", matchIfMissing=true) @ConditionalOnBean(SpringDocConfiguration.class) public class SwaggerUiOAuthProperties extends Object
Please refer to the swagger configuration.md to get the idea what each parameter does.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description SwaggerUiOAuthProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAdditionalQueryStringParams()
Gets additional query string params.String
getAppName()
Gets app name.String
getClientId()
Gets client id.String
getClientSecret()
Gets client secret.Map<String,Object>
getConfigParameters()
Gets config parameters.String
getRealm()
Gets realm.List<String>
getScopes()
Get the pre-selected scopes during authentication.String
getScopeSeparator()
Gets scope separator.String
getUseBasicAuthenticationWithAccessCodeGrant()
Gets use basic authentication with access code grant.Boolean
getUsePkceWithAuthorizationCodeGrant()
Gets use pkce with authorization code grant.void
setAdditionalQueryStringParams(Map<String,String> additionalQueryStringParams)
Sets additional query string params.void
setAppName(String appName)
Sets app name.void
setClientId(String clientId)
Sets client id.void
setClientSecret(String clientSecret)
Sets client secret.void
setRealm(String realm)
Sets realm.void
setScopes(List<String> scopes)
Sets the pre-selected scopes during authentication.void
setScopeSeparator(String scopeSeparator)
Sets scope separator.void
setUseBasicAuthenticationWithAccessCodeGrant(String useBasicAuthenticationWithAccessCodeGrant)
Sets use basic authentication with access code grant.void
setUsePkceWithAuthorizationCodeGrant(Boolean usePkceWithAuthorizationCodeGrant)
Sets use pkce with authorization code grant.
-
-
-
Method Detail
-
getConfigParameters
public Map<String,Object> getConfigParameters()
Gets config parameters.- Returns:
- the config parameters
-
getClientId
public String getClientId()
Gets client id.- Returns:
- the client id
-
setClientId
public void setClientId(String clientId)
Sets client id.- Parameters:
clientId
- the client id
-
getClientSecret
public String getClientSecret()
Gets client secret.- Returns:
- the client secret
-
setClientSecret
public void setClientSecret(String clientSecret)
Sets client secret.- Parameters:
clientSecret
- the client secret
-
getRealm
public String getRealm()
Gets realm.- Returns:
- the realm
-
setRealm
public void setRealm(String realm)
Sets realm.- Parameters:
realm
- the realm
-
getAppName
public String getAppName()
Gets app name.- Returns:
- the app name
-
setAppName
public void setAppName(String appName)
Sets app name.- Parameters:
appName
- the app name
-
getScopeSeparator
public String getScopeSeparator()
Gets scope separator.- Returns:
- the scope separator
-
setScopeSeparator
public void setScopeSeparator(String scopeSeparator)
Sets scope separator.- Parameters:
scopeSeparator
- the scope separator
-
getAdditionalQueryStringParams
public Map<String,String> getAdditionalQueryStringParams()
Gets additional query string params.- Returns:
- the additional query string params
-
setAdditionalQueryStringParams
public void setAdditionalQueryStringParams(Map<String,String> additionalQueryStringParams)
Sets additional query string params.- Parameters:
additionalQueryStringParams
- the additional query string params
-
getUseBasicAuthenticationWithAccessCodeGrant
public String getUseBasicAuthenticationWithAccessCodeGrant()
Gets use basic authentication with access code grant.- Returns:
- the use basic authentication with access code grant
-
setUseBasicAuthenticationWithAccessCodeGrant
public void setUseBasicAuthenticationWithAccessCodeGrant(String useBasicAuthenticationWithAccessCodeGrant)
Sets use basic authentication with access code grant.- Parameters:
useBasicAuthenticationWithAccessCodeGrant
- the use basic authentication with access code grant
-
getUsePkceWithAuthorizationCodeGrant
public Boolean getUsePkceWithAuthorizationCodeGrant()
Gets use pkce with authorization code grant.- Returns:
- the use pkce with authorization code grant
-
setUsePkceWithAuthorizationCodeGrant
public void setUsePkceWithAuthorizationCodeGrant(Boolean usePkceWithAuthorizationCodeGrant)
Sets use pkce with authorization code grant.- Parameters:
usePkceWithAuthorizationCodeGrant
- the use pkce with authorization code grant
-
getScopes
public List<String> getScopes()
Get the pre-selected scopes during authentication.- Returns:
- the pre-selected scopes during authentication
-
-