Class JwtCurrentUserProvider

java.lang.Object
com.flowable.core.spring.security.oauth2.JwtCurrentUserProvider
All Implemented Interfaces:
CurrentUserProvider

public class JwtCurrentUserProvider extends Object implements CurrentUserProvider
Author:
Filip Hrisafov
  • Field Details

    • firstNameClaim

      protected String firstNameClaim
    • lastNameClaim

      protected String lastNameClaim
    • displayNameClaim

      protected String displayNameClaim
    • emailClaim

      protected String emailClaim
  • Constructor Details

    • JwtCurrentUserProvider

      public JwtCurrentUserProvider()
  • Method Details

    • getCurrentUser

      public CurrentUserResponse getCurrentUser(Principal principal)
      Specified by:
      getCurrentUser in interface CurrentUserProvider
    • getClaim

      protected String getClaim(Jwt jwt, String claimName)
    • supports

      public boolean supports(Principal principal)
      Specified by:
      supports in interface CurrentUserProvider
    • getFirstNameClaim

      public String getFirstNameClaim()
    • setFirstNameClaim

      public void setFirstNameClaim(String firstNameClaim)
    • getLastNameClaim

      public String getLastNameClaim()
    • setLastNameClaim

      public void setLastNameClaim(String lastNameClaim)
    • getDisplayNameClaim

      public String getDisplayNameClaim()
    • setDisplayNameClaim

      public void setDisplayNameClaim(String displayNameClaim)
    • getEmailClaim

      public String getEmailClaim()
    • setEmailClaim

      public void setEmailClaim(String emailClaim)