Class PrincipalNameFromParameterObjectSecurityCheck
java.lang.Object
io.quarkus.spring.security.runtime.interceptor.check.PrincipalNameFromParameterObjectSecurityCheck
- All Implemented Interfaces:
io.quarkus.security.spi.runtime.SecurityCheck
public class PrincipalNameFromParameterObjectSecurityCheck
extends Object
implements io.quarkus.security.spi.runtime.SecurityCheck
Instances of these classes are created in order to check if the value of property of method parameter
inside a Spring Security expression matches the principal name
Access to the property of the object is performed by delegating to a purpose generated
accessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(io.quarkus.security.identity.SecurityIdentity identity, io.quarkus.security.spi.runtime.MethodDescription methodDescription, Object[] parameters) voidof(int index, String expectedParameterClass, String stringPropertyAccessorClass, String propertyName, PrincipalNameFromParameterObjectSecurityCheck.CheckType checkType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.security.spi.runtime.SecurityCheck
isPermitAll, nonBlockingApply, nonBlockingApply, requiresMethodArguments
-
Method Details
-
of
public static PrincipalNameFromParameterObjectSecurityCheck of(int index, String expectedParameterClass, String stringPropertyAccessorClass, String propertyName, PrincipalNameFromParameterObjectSecurityCheck.CheckType checkType) -
apply
public void apply(io.quarkus.security.identity.SecurityIdentity identity, Method method, Object[] parameters) - Specified by:
applyin interfaceio.quarkus.security.spi.runtime.SecurityCheck
-
apply
public void apply(io.quarkus.security.identity.SecurityIdentity identity, io.quarkus.security.spi.runtime.MethodDescription methodDescription, Object[] parameters) - Specified by:
applyin interfaceio.quarkus.security.spi.runtime.SecurityCheck
-