All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.convergence_platform.services.security.ServiceAuthenticationToken Maven / Gradle / Ivy

Go to download

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 authorities) {
        super(principal, credentials, authorities);

        this.email = principal;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy