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
ConstructorsConstructorDescriptionRuntimeBundleJwtUserInfoUriAuthenticationConverter(org.activiti.cloud.services.common.security.jwt.JwtUserInfoUriAuthenticationConverter jwtUserInfoUriAuthenticationConverter) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.authentication.AbstractAuthenticationTokenconvert(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 instanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
convertin interfaceorg.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken> - Parameters:
jwt-- Returns:
- the Jwt authentication token
-