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

com.manywho.sdk.api.security.AuthenticatedWho Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package com.manywho.sdk.api.security;

import com.manywho.sdk.api.run.state.Geolocation;

import javax.validation.constraints.NotNull;

public class AuthenticatedWho {
    private String manyWhoUserId;
    @NotNull
    private String manyWhoTenantId;
    private String manyWhoToken;
    private Geolocation geolocation;
    private String userId;
    private String username;
    private String email;
    private String identityProvider;
    private String token;
    private String tenantName;
    private String directoryName;
    private String directoryId;
    private String firstName;
    private String lastName;

    public String getManyWhoUserId() {
        return manyWhoUserId;
    }

    public void setManyWhoUserId(String manyWhoUserId) {
        this.manyWhoUserId = manyWhoUserId;
    }

    public String getManyWhoTenantId() {
        return manyWhoTenantId;
    }

    public void setManyWhoTenantId(String manyWhoTenantId) {
        this.manyWhoTenantId = manyWhoTenantId;
    }

    public String getManyWhoToken() {
        return manyWhoToken;
    }

    public void setManyWhoToken(String manyWhoToken) {
        this.manyWhoToken = manyWhoToken;
    }

    public Geolocation getGeolocation() {
        return geolocation;
    }

    public void setGeolocation(Geolocation geolocation) {
        this.geolocation = geolocation;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdentityProvider() {
        return identityProvider;
    }

    public void setIdentityProvider(String identityProvider) {
        this.identityProvider = identityProvider;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getDirectoryName() {
        return directoryName;
    }

    public void setDirectoryName(String directoryName) {
        this.directoryName = directoryName;
    }

    public String getDirectoryId() {
        return directoryId;
    }

    public void setDirectoryId(String directoryId) {
        this.directoryId = directoryId;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public static AuthenticatedWho createPublicUser(String tenant) {
        AuthenticatedWho authenticatedWho = new AuthenticatedWho();
        authenticatedWho.setDirectoryId("UNAUTHENTICATED");
        authenticatedWho.setDirectoryName("UNKNOWN");
        authenticatedWho.setIdentityProvider("NONE");
        authenticatedWho.setEmail("[email protected]");
        authenticatedWho.setManyWhoTenantId(tenant);
        authenticatedWho.setManyWhoUserId("52DF1A90-3826-4508-B7C2-CDE8AA5B72CF");
        authenticatedWho.setTenantName("UNKNOWN");
        authenticatedWho.setToken("NONE");
        authenticatedWho.setUserId("PUBLIC_USER");

        return authenticatedWho;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy