Class RuntimeBundleJwtUserInfoUriAuthenticationConverter

java.lang.Object
org.activiti.cloud.starter.rb.jwt.RuntimeBundleJwtUserInfoUriAuthenticationConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>

public class RuntimeBundleJwtUserInfoUriAuthenticationConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>
  • Constructor Summary

    Constructors
    Constructor
    Description
    RuntimeBundleJwtUserInfoUriAuthenticationConverter(org.activiti.cloud.services.common.security.jwt.JwtUserInfoUriAuthenticationConverter jwtUserInfoUriAuthenticationConverter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.security.authentication.AbstractAuthenticationToken
    convert(org.springframework.security.oauth2.jwt.Jwt jwt)
    In Runtime Bundle's case, we need to perform the same conversion as in other modules using the common jwt converter, but also adding the id of the currently authenticated user so that it can be set as the initiator of the process instance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Constructor Details

    • RuntimeBundleJwtUserInfoUriAuthenticationConverter

      public RuntimeBundleJwtUserInfoUriAuthenticationConverter(org.activiti.cloud.services.common.security.jwt.JwtUserInfoUriAuthenticationConverter jwtUserInfoUriAuthenticationConverter)
  • Method Details

    • convert

      public org.springframework.security.authentication.AbstractAuthenticationToken convert(org.springframework.security.oauth2.jwt.Jwt jwt)
      In Runtime Bundle's case, we need to perform the same conversion as in other modules using the common jwt converter, but also adding the id of the currently authenticated user so that it can be set as the initiator of the process instance
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>
      Parameters:
      jwt -
      Returns:
      the Jwt authentication token