Class CsrfProtection
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.ScanningRecipe<GenerateWebSecurityConfigurerAdapter>
org.openrewrite.java.security.spring.CsrfProtection
- All Implemented Interfaces:
Cloneable
public class CsrfProtection
extends org.openrewrite.ScanningRecipe<GenerateWebSecurityConfigurerAdapter>
-
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.openrewrite.SourceFile>generate(GenerateWebSecurityConfigurerAdapter acc, org.openrewrite.ExecutionContext ctx) getInitialValue(org.openrewrite.ExecutionContext ctx) org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> Methods inherited from class org.openrewrite.ScanningRecipe
generate, getVisitorMethods inherited from class org.openrewrite.Recipe
addDataTable, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getJacksonPolymorphicTypeTag, getMaintainers, getName, getRecipeList, getTags, hashCode, maxCycles, noop, run, run, run, setContributors, setExamples, validate, validate, validateAll, validateAll
-
Constructor Details
-
CsrfProtection
public CsrfProtection()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Specified by:
getDescriptionin classorg.openrewrite.Recipe
-
getInitialValue
- Specified by:
getInitialValuein classorg.openrewrite.ScanningRecipe<GenerateWebSecurityConfigurerAdapter>
-
getScanner
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getScanner(GenerateWebSecurityConfigurerAdapter acc) - Specified by:
getScannerin classorg.openrewrite.ScanningRecipe<GenerateWebSecurityConfigurerAdapter>
-
generate
public Collection<? extends org.openrewrite.SourceFile> generate(GenerateWebSecurityConfigurerAdapter acc, org.openrewrite.ExecutionContext ctx) - Overrides:
generatein classorg.openrewrite.ScanningRecipe<GenerateWebSecurityConfigurerAdapter>
-
getVisitor
public org.openrewrite.TreeVisitor<?,org.openrewrite.ExecutionContext> getVisitor(GenerateWebSecurityConfigurerAdapter acc) - Overrides:
getVisitorin classorg.openrewrite.ScanningRecipe<GenerateWebSecurityConfigurerAdapter>
-