Class GrpcSecurityMetadataSource
java.lang.Object
org.lognet.springboot.grpc.security.GrpcSecurityMetadataSource
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean,org.springframework.security.access.method.MethodSecurityMetadataSource,org.springframework.security.access.SecurityMetadataSource
public class GrpcSecurityMetadataSource
extends Object
implements org.springframework.security.access.method.MethodSecurityMetadataSource
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcSecurityMetadataSource(GRpcServicesRegistry registry, Map<io.grpc.MethodDescriptor<?,?>,List<org.springframework.security.access.ConfigAttribute>> methodDescriptorAttributes) -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.springframework.security.access.ConfigAttribute>Collection<org.springframework.security.access.ConfigAttribute>getAttributes(Object object)Collection<org.springframework.security.access.ConfigAttribute>getAttributes(Method method, Class<?> targetClass)boolean
-
Constructor Details
-
GrpcSecurityMetadataSource
public GrpcSecurityMetadataSource(GRpcServicesRegistry registry, Map<io.grpc.MethodDescriptor<?,?>,List<org.springframework.security.access.ConfigAttribute>> methodDescriptorAttributes)
-
-
Method Details
-
getAttributes
public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Object object) throws IllegalArgumentException- Specified by:
getAttributesin interfaceorg.springframework.security.access.SecurityMetadataSource- Throws:
IllegalArgumentException
-
getAllConfigAttributes
- Specified by:
getAllConfigAttributesin interfaceorg.springframework.security.access.SecurityMetadataSource
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.access.SecurityMetadataSource
-
getAttributes
public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Method method, Class<?> targetClass)- Specified by:
getAttributesin interfaceorg.springframework.security.access.method.MethodSecurityMetadataSource
-