Class GrpcSecurity

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.security.config.annotation.SecurityBuilder<io.grpc.ServerInterceptor>

    public class GrpcSecurity
    extends org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder<io.grpc.ServerInterceptor,​GrpcSecurity>
    implements org.springframework.security.config.annotation.SecurityBuilder<io.grpc.ServerInterceptor>, org.springframework.context.ApplicationContextAware
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static io.grpc.Context.Key<org.springframework.security.core.Authentication> AUTHENTICATION_CONTEXT_KEY  
    • Constructor Summary

      Constructors 
      Constructor Description
      GrpcSecurity​(org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> objectPostProcessor)  
    • Field Detail

      • AUTHENTICATION_CONTEXT_KEY

        public static final io.grpc.Context.Key<org.springframework.security.core.Authentication> AUTHENTICATION_CONTEXT_KEY
    • Constructor Detail

      • GrpcSecurity

        public GrpcSecurity​(org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> objectPostProcessor)
    • Method Detail

      • userDetailsService

        public GrpcSecurity userDetailsService​(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • getApplicationContext

        public org.springframework.context.ApplicationContext getApplicationContext()
      • authenticationProvider

        public GrpcSecurity authenticationProvider​(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
      • beforeConfigure

        protected void beforeConfigure()
                                throws java.lang.Exception
        Overrides:
        beforeConfigure in class org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder<io.grpc.ServerInterceptor,​GrpcSecurity>
        Throws:
        java.lang.Exception
      • performBuild

        protected io.grpc.ServerInterceptor performBuild()
                                                  throws java.lang.Exception
        Specified by:
        performBuild in class org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder<io.grpc.ServerInterceptor,​GrpcSecurity>
        Throws:
        java.lang.Exception
      • afterInvocationManager

        protected org.springframework.security.access.intercept.AfterInvocationManager afterInvocationManager()