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 ObjectPlease 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.StringgetAppName()Gets app name.StringgetClientId()Gets client id.StringgetClientSecret()Gets client secret.Map<String,Object>getConfigParameters()Gets config parameters.StringgetRealm()Gets realm.List<String>getScopes()Get the pre-selected scopes during authentication.StringgetScopeSeparator()Gets scope separator.StringgetUseBasicAuthenticationWithAccessCodeGrant()Gets use basic authentication with access code grant.BooleangetUsePkceWithAuthorizationCodeGrant()Gets use pkce with authorization code grant.voidsetAdditionalQueryStringParams(Map<String,String> additionalQueryStringParams)Sets additional query string params.voidsetAppName(String appName)Sets app name.voidsetClientId(String clientId)Sets client id.voidsetClientSecret(String clientSecret)Sets client secret.voidsetRealm(String realm)Sets realm.voidsetScopes(List<String> scopes)Sets the pre-selected scopes during authentication.voidsetScopeSeparator(String scopeSeparator)Sets scope separator.voidsetUseBasicAuthenticationWithAccessCodeGrant(String useBasicAuthenticationWithAccessCodeGrant)Sets use basic authentication with access code grant.voidsetUsePkceWithAuthorizationCodeGrant(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
-
-