Class ElytronPropertiesProcessor
- java.lang.Object
-
- io.quarkus.elytron.security.properties.deployment.ElytronPropertiesProcessor
-
class ElytronPropertiesProcessor extends Object
The build time process for the security aspects of the deployment. This creates BuildSteps for integration with the Elytron security services. This supports the Elytron LegacyPropertiesSecurityRealm and SimpleMapBackedSecurityRealm realm implementations. Others could be added by creating an extension that produces a SecurityRealmBuildItem for the realm.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) SecurityUsersConfigpropertiesConfig
-
Constructor Summary
Constructors Constructor Description ElytronPropertiesProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidconfigureFileRealmAuthConfig(ElytronPropertiesFileRecorder recorder, BuildProducer<NativeImageResourceBuildItem> resources, BuildProducer<SecurityRealmBuildItem> securityRealm)Check to see if a PropertiesRealmConfig was specified and enabled and create a LegacyPropertiesSecurityRealm runtime value to process the user/roles properties files.(package private) voidconfigureMPRealmConfig(ElytronPropertiesFileRecorder recorder, BuildProducer<SecurityRealmBuildItem> securityRealm, MPRealmRuntimeConfig runtimeConfig)Check to see if the a MPRealmConfig was specified and enabled and create a SimpleMapBackedSecurityRealm runtime value.(package private) FeatureBuildItemfeature()(package private) ElytronPasswordMarkerBuildItemmarker()(package private) voidnativeResource(BuildProducer<NativeImageResourceBuildItem> resources)
-
-
-
Field Detail
-
propertiesConfig
SecurityUsersConfig propertiesConfig
-
-
Method Detail
-
feature
FeatureBuildItem feature()
-
configureFileRealmAuthConfig
void configureFileRealmAuthConfig(ElytronPropertiesFileRecorder recorder, BuildProducer<NativeImageResourceBuildItem> resources, BuildProducer<SecurityRealmBuildItem> securityRealm) throws Exception
Check to see if a PropertiesRealmConfig was specified and enabled and create a LegacyPropertiesSecurityRealm runtime value to process the user/roles properties files. This also registers the names of the user/roles properties files to include the build artifact.- Parameters:
recorder- - runtime security recordersecurityRealm- - the producer factory for the SecurityRealmBuildItem- Throws:
Exception- - on any failure
-
nativeResource
void nativeResource(BuildProducer<NativeImageResourceBuildItem> resources) throws Exception
- Throws:
Exception
-
marker
ElytronPasswordMarkerBuildItem marker()
-
configureMPRealmConfig
void configureMPRealmConfig(ElytronPropertiesFileRecorder recorder, BuildProducer<SecurityRealmBuildItem> securityRealm, MPRealmRuntimeConfig runtimeConfig) throws Exception
Check to see if the a MPRealmConfig was specified and enabled and create a SimpleMapBackedSecurityRealm runtime value.- Parameters:
recorder- - runtime security recordersecurityRealm- - the producer factory for the SecurityRealmBuildItem- Throws:
Exception- - on any failure
-
-