Class OAuth2AuthenticationProviderUtils

java.lang.Object
com.broadleafcommerce.auth.authorization.security.spring.OAuth2AuthenticationProviderUtils

public final class OAuth2AuthenticationProviderUtils extends Object
This is a direct copy of org.springframework.security.oauth2.server.authorization.authentication.OAuth2AuthenticationProviderUtils due to package-private access in the original Spring Security Authorization Server framework.

Utility methods for the OAuth 2.0 AuthenticationProvider's.

Since:
0.0.3
Author:
Joe Grandja
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends org.springframework.security.oauth2.core.OAuth2Token>
    org.springframework.security.oauth2.core.OAuth2AccessToken
    accessToken(org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder builder, T token, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenContext accessTokenContext)
     
    static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken
    getAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getAuthenticatedClientElseThrowInvalidClient

      public static org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken getAuthenticatedClientElseThrowInvalidClient(org.springframework.security.core.Authentication authentication)
    • accessToken

      public static <T extends org.springframework.security.oauth2.core.OAuth2Token> org.springframework.security.oauth2.core.OAuth2AccessToken accessToken(org.springframework.security.oauth2.server.authorization.OAuth2Authorization.Builder builder, T token, org.springframework.security.oauth2.server.authorization.token.OAuth2TokenContext accessTokenContext)