Class SecurityOAuth2
java.lang.Object
io.micronaut.starter.feature.security.SecurityFeature
io.micronaut.starter.feature.security.SecurityOAuth2
- All Implemented Interfaces:
- io.micronaut.core.naming.Described,- io.micronaut.core.naming.Named,- io.micronaut.core.order.Ordered,- Feature,- SecurityAuthenticationModeProvider,- MicronautServerDependent
@Singleton
public class SecurityOAuth2
extends SecurityFeature
implements SecurityAuthenticationModeProvider
- 
Field SummaryFieldsFields inherited from interface io.micronaut.core.order.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface io.micronaut.starter.feature.security.SecurityAuthenticationModeProviderPROPERTY_MICRONAUT_SECURITY_AUTHENTICATION
- 
Constructor SummaryConstructorsConstructorDescriptionSecurityOAuth2(SecurityAnnotations securityAnnotations) Deprecated.SecurityOAuth2(SecurityAnnotations securityAnnotations, HttpClient httpClient) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidapply(GeneratorContext generatorContext) If this method is called for a given feature that means the feature was explicitly selected, included by default as a result ofDefaultFeature.shouldApply(ApplicationType, io.micronaut.starter.options.Options, java.util.Set), or added explicitly by another feature throughFeatureContext.addFeature(Feature).@NonNull String@NonNull StringgetName()The name of the feature.intgetOrder()The order of a feature controls the order in which it applies.@NonNull SecurityAuthenticationModegetTitle()voidprocessSelectedFeatures(FeatureContext featureContext) If this method is called for a given feature then that feature was explicitly selected or was included by default as a result ofDefaultFeature.shouldApply(ApplicationType, io.micronaut.starter.options.Options, java.util.Set).Methods inherited from class io.micronaut.starter.feature.security.SecurityFeaturegetCategory, supportsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.naming.DescribedgetDescriptionMethods inherited from interface io.micronaut.starter.feature.FeaturegetThirdPartyDocumentation, isCommunity, isPreview, isVisible
- 
Field Details- 
NAME- See Also:
 
- 
ORDERpublic static final int ORDER- See Also:
 
 
- 
- 
Constructor Details- 
SecurityOAuth2Deprecated.
- 
SecurityOAuth2
 
- 
- 
Method Details- 
processSelectedFeaturesDescription copied from interface:FeatureIf this method is called for a given feature then that feature was explicitly selected or was included by default as a result ofDefaultFeature.shouldApply(ApplicationType, io.micronaut.starter.options.Options, java.util.Set). This method can be implemented to allow features to modify the list of features that will apply to the project. The methodsFeatureContext.addFeature(Feature)andFeatureContext.exclude(FeaturePredicate)are the primary ways to add and remove features from the context.FeatureContext.isPresent(Class)can be used to determine the existence of other features in order to make decisions.- Specified by:
- processSelectedFeaturesin interface- Feature
- Overrides:
- processSelectedFeaturesin class- SecurityFeature
- Parameters:
- featureContext- The feature context
 
- 
getNameDescription copied from interface:FeatureThe name of the feature. It must be unique.
- 
getTitle
- 
getDescription- Specified by:
- getDescriptionin interface- io.micronaut.core.naming.Described
- Specified by:
- getDescriptionin interface- Feature
 
- 
applyDescription copied from interface:FeatureIf this method is called for a given feature that means the feature was explicitly selected, included by default as a result ofDefaultFeature.shouldApply(ApplicationType, io.micronaut.starter.options.Options, java.util.Set), or added explicitly by another feature throughFeatureContext.addFeature(Feature). At this point the feature list is set and cannot change. This method can be implemented to modify the generated project. The feature can add templates by executingGeneratorContext.addTemplate(String, io.micronaut.starter.template.Template), modify configuration by modifyingGeneratorContext.getConfiguration()orGeneratorContext.getBootstrapConfiguration(), or modify build properties throughGeneratorContext.getBuildProperties().
- 
getMicronautDocumentation- Specified by:
- getMicronautDocumentationin interface- Feature
- Returns:
- Returns a link to Micronaut documentation about the feature. eg. https://micronaut-projects.github.io/micronaut-cache/latest/guide/index.html#hazelcast
 
- 
getOrderpublic int getOrder()Description copied from interface:FeatureThe order of a feature controls the order in which it applies. The order of a feature is important to ensure that any previous work done by other features that may be required is done. SeeFeaturePhasefor a list of phases to choose from.
- 
getSecurityAuthenticationMode- Specified by:
- getSecurityAuthenticationModein interface- SecurityAuthenticationModeProvider
 
 
-