Package io.quarkus.security.spi
Interface SecurityTransformer
- All Known Implementing Classes:
SecurityTransformerBuildItem.SecurityTransformerImpl
public sealed interface SecurityTransformer
permits SecurityTransformerBuildItem.SecurityTransformerImpl
Helper class that allows to determine whether the annotation target has security annotations and which ones.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumTypes of authorization we perform for registered security annotations. -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.jboss.jandex.AnnotationInstance> findFirstSecurityAnnotation(Collection<org.jboss.jandex.AnnotationInstance> annotationInstances) Optional<org.jboss.jandex.AnnotationInstance> findFirstSecurityAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget, SecurityTransformer.AuthorizationType... authorizationTypes) Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.DotName securityAnnotationName) Collection<org.jboss.jandex.AnnotationInstance> getAnnotationsWithRepeatable(org.jboss.jandex.DotName securityAnnotationName) Collection<org.jboss.jandex.AnnotationTransformation> Collection<org.jboss.jandex.DotName> getSecurityAnnotationNames(SecurityTransformer.AuthorizationType... authorizationTypes) booleanhasSecurityAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget, SecurityTransformer.AuthorizationType... authorizationTypes) booleanisSecurityAnnotation(Collection<org.jboss.jandex.AnnotationInstance> annotationInstances) booleanisSecurityAnnotation(org.jboss.jandex.AnnotationInstance annotationInstance, SecurityTransformer.AuthorizationType... authorizationTypes)
-
Method Details
-
getAnnotations
Collection<org.jboss.jandex.AnnotationInstance> getAnnotations(org.jboss.jandex.DotName securityAnnotationName) -
getAnnotationsWithRepeatable
Collection<org.jboss.jandex.AnnotationInstance> getAnnotationsWithRepeatable(org.jboss.jandex.DotName securityAnnotationName) -
hasSecurityAnnotation
boolean hasSecurityAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget, SecurityTransformer.AuthorizationType... authorizationTypes) -
isSecurityAnnotation
boolean isSecurityAnnotation(org.jboss.jandex.AnnotationInstance annotationInstance, SecurityTransformer.AuthorizationType... authorizationTypes) -
isSecurityAnnotation
-
findFirstSecurityAnnotation
Optional<org.jboss.jandex.AnnotationInstance> findFirstSecurityAnnotation(Collection<org.jboss.jandex.AnnotationInstance> annotationInstances) -
findFirstSecurityAnnotation
Optional<org.jboss.jandex.AnnotationInstance> findFirstSecurityAnnotation(org.jboss.jandex.AnnotationTarget annotationTarget, SecurityTransformer.AuthorizationType... authorizationTypes) -
getInterfaceTransformations
Collection<org.jboss.jandex.AnnotationTransformation> getInterfaceTransformations() -
getSecurityAnnotationNames
Collection<org.jboss.jandex.DotName> getSecurityAnnotationNames(SecurityTransformer.AuthorizationType... authorizationTypes)
-