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

com.jelastic.api.system.persistence.Credential Maven / Gradle / Ivy

The newest version!
/*Server class MD5: 5d07a73e1cbcb98c92bfb3135db71e44*/
package com.jelastic.api.system.persistence;

import com.jelastic.api.common.annotation.Transform;
import com.jelastic.api.development.response.interfaces.ArrayItem;

/**
 * @name Jelastic API Client
 * @version 8.11.2
 * @copyright Jelastic, Inc.
 */
public class Credential extends ArrayItem implements Cloneable {

    public static final String LOGIN = "login";

    public static final String PASSWORD = "password";

    private String login;

    @Transform(skip = true)
    private String password;

    private String sshKey;

    public Credential() {
    }

    public Credential(String login, String password) {
        this.login = login;
        this.password = password;
    }

    public Credential(String login) {
        this.login = login;
    }

    public Credential(String login, String password, String sshKey) {
        this.login = login;
        this.password = password;
        this.sshKey = sshKey;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLogin() {
        return login;
    }

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

    public String getSshKey() {
        return sshKey;
    }

    public void setSshKey(String sshKey) {
        this.sshKey = sshKey;
    }

    @Override
    public Credential clone() {
        return new Credential(this.login, this.password, this.sshKey);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy