Class SecurityContextBuilder
- java.lang.Object
-
- springfox.documentation.spi.service.contexts.SecurityContextBuilder
-
public class SecurityContextBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SecurityContextBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SecurityContext
build()
SecurityContextBuilder
forHttpMethods(java.util.function.Predicate<org.springframework.http.HttpMethod> methodSelector)
Deprecated.SecurityContextBuilder
forPaths(java.util.function.Predicate<java.lang.String> selector)
Deprecated.SecurityContextBuilder
operationSelector(java.util.function.Predicate<OperationContext> selector)
SecurityContextBuilder
securityReferences(java.util.List<SecurityReference> securityReferences)
-
-
-
Method Detail
-
securityReferences
public SecurityContextBuilder securityReferences(java.util.List<SecurityReference> securityReferences)
-
forPaths
@Deprecated public SecurityContextBuilder forPaths(java.util.function.Predicate<java.lang.String> selector)
Deprecated.UseoperationSelector
instead- Parameters:
selector
- - path selector- Returns:
- this
- Since:
- 3.0.0
-
forHttpMethods
@Deprecated public SecurityContextBuilder forHttpMethods(java.util.function.Predicate<org.springframework.http.HttpMethod> methodSelector)
Deprecated.UseoperationSelector
instead- Parameters:
methodSelector
- - http method selector- Returns:
- this
- Since:
- 3.0.0
-
operationSelector
public SecurityContextBuilder operationSelector(java.util.function.Predicate<OperationContext> selector)
-
build
public SecurityContext build()
-
-