Class ElytronPropertiesProcessor
java.lang.Object
io.quarkus.elytron.security.properties.deployment.ElytronPropertiesProcessor
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(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 Details
-
propertiesConfig
SecurityUsersConfig propertiesConfig
-
-
Constructor Details
-
ElytronPropertiesProcessor
ElytronPropertiesProcessor()
-
-
Method Details
-
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
- 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
-