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

com.fivefaces.structureclient.config.security.workflow.WorkflowAuthenticationToken Maven / Gradle / Ivy

There is a newer version: 1.0.62
Show newest version
package com.fivefaces.structureclient.config.security.workflow;

import lombok.Getter;
import org.springframework.security.authentication.AbstractAuthenticationToken;

@Getter
public class WorkflowAuthenticationToken extends AbstractAuthenticationToken {

    private final String apiToken;

    public WorkflowAuthenticationToken(String apiToken) {
        super(null);
        this.apiToken = apiToken;
    }

    @Override
    public Object getCredentials() {
        return null;
    }

    @Override
    public Object getPrincipal() {
        return apiToken;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy