Annotation Interface SecurityConfig


@Retention(RUNTIME) @Target(METHOD) public @interface SecurityConfig
This provides the authorities that are required to access this service.
The value() of the class is the enum which specifies if the given resource is PROTECTED or UNPROTECTED. If the resource is UNPROTECTED, the security interceptor does not enforce authentication checks.
Either the authorities or authoritiesSupplier need to be specified. If both are not specified then the authorization for this resource is not checked. Only the authentication check will be enforced.
The authoritiesSupplier can implement the AuthoritiesSupplier interface. This also supports a Lambda that complies to the Function<ChenileExchange,String[]>. This avoids the compile time dependency to security-interceptor package by classes.
If authorities == null, users will be able to access the service without any authorization restriction