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 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:
      getAttributes in interface org.springframework.security.access.SecurityMetadataSource
      Throws:
      IllegalArgumentException
    • getAllConfigAttributes

      public Collection<org.springframework.security.access.ConfigAttribute> getAllConfigAttributes()
      Specified by:
      getAllConfigAttributes in interface org.springframework.security.access.SecurityMetadataSource
    • supports

      public boolean supports(Class<?> clazz)
      Specified by:
      supports in interface org.springframework.security.access.SecurityMetadataSource
    • getAttributes

      public Collection<org.springframework.security.access.ConfigAttribute> getAttributes(Method method, Class<?> targetClass)
      Specified by:
      getAttributes in interface org.springframework.security.access.method.MethodSecurityMetadataSource