Class GrpcSecurity
java.lang.Object
org.springframework.security.config.annotation.AbstractSecurityBuilder<O>
org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder<io.grpc.ServerInterceptor,GrpcSecurity>
org.lognet.springboot.grpc.security.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
FieldsModifier and TypeFieldDescriptionstatic io.grpc.Context.Key<org.springframework.security.core.Authentication> -
Constructor Summary
ConstructorsConstructorDescriptionGrpcSecurity(org.springframework.security.config.annotation.ObjectPostProcessor<Object> objectPostProcessor) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.security.access.intercept.AfterInvocationManagerauthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)protected voidorg.springframework.context.ApplicationContextprotected io.grpc.ServerInterceptorvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)userDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)Methods inherited from class org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder
apply, beforeInit, doBuild, getConfigurer, getConfigurers, getOrBuild, getSharedObject, getSharedObjects, objectPostProcessor, postProcess, removeConfigurer, removeConfigurers, setSharedObjectMethods inherited from class org.springframework.security.config.annotation.AbstractSecurityBuilder
build, getObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.config.annotation.SecurityBuilder
build
-
Field Details
-
AUTHENTICATION_CONTEXT_KEY
public static final io.grpc.Context.Key<org.springframework.security.core.Authentication> AUTHENTICATION_CONTEXT_KEY
-
-
Constructor Details
-
GrpcSecurity
public GrpcSecurity(org.springframework.security.config.annotation.ObjectPostProcessor<Object> objectPostProcessor)
-
-
Method Details
-
authorizeRequests
- Throws:
Exception
-
userDetailsService
public GrpcSecurity userDetailsService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) throws Exception- Throws:
Exception
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
authenticationSchemeSelector
-
authenticationProvider
public GrpcSecurity authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) -
beforeConfigure
- Overrides:
beforeConfigurein classorg.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder<io.grpc.ServerInterceptor,GrpcSecurity>- Throws:
Exception
-
performBuild
- Specified by:
performBuildin classorg.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder<io.grpc.ServerInterceptor,GrpcSecurity>- Throws:
Exception
-
afterInvocationManager
protected org.springframework.security.access.intercept.AfterInvocationManager afterInvocationManager()
-