Class SecurityContextHolderPrincipalResolver

java.lang.Object
org.springframework.security.oauth2.client.web.client.SecurityContextHolderPrincipalResolver
All Implemented Interfaces:
OAuth2ClientHttpRequestInterceptor.PrincipalResolver

public class SecurityContextHolderPrincipalResolver extends Object implements OAuth2ClientHttpRequestInterceptor.PrincipalResolver
A strategy for resolving a principal from an intercepted request using the SecurityContextHolder.
Since:
6.4
  • Constructor Details

    • SecurityContextHolderPrincipalResolver

      public SecurityContextHolderPrincipalResolver()
      Constructs a SecurityContextHolderPrincipalResolver.
    • SecurityContextHolderPrincipalResolver

      public SecurityContextHolderPrincipalResolver(org.springframework.security.core.context.SecurityContextHolderStrategy securityContextHolderStrategy)
      Constructs a SecurityContextHolderPrincipalResolver using the provided parameters.
      Parameters:
      securityContextHolderStrategy - the SecurityContextHolderStrategy to use for resolving the principal
  • Method Details