com.fivefaces.structureclient.config.security.workflow.WorkflowAuthenticationToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-structure-client Show documentation
Show all versions of common-structure-client Show documentation
structure Client for Five Faces
The 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;
}
}