io.convergence_platform.services.security.ServiceAuthenticationToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.services.security;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import java.util.Collection;
import java.util.UUID;
public class ServiceAuthenticationToken extends UsernamePasswordAuthenticationToken {
public UUID userUuid;
public String jwt;
public boolean isUser = false;
public boolean isService = false;
public String invokerService;
public String email = null;
public ServiceAuthenticationToken(String principal, Object credentials, Collection extends GrantedAuthority> authorities) {
super(principal, credentials, authorities);
this.email = principal;
}
}