Android Open Source - PasswordDroid Entry






From Project

Back to project page PasswordDroid.

License

The source code is released under:

GNU General Public License

If you think the Android project PasswordDroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package de.wuthoehle.passworddroid.service.model.entries;
//  www.  ja  va  2 s. c  o  m
/* Copyright (c) 2015 Marco Huenseler <marcoh.huenseler+git@gmail.com>
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

import java.util.ArrayList;
import java.util.List;

import de.wuthoehle.passworddroid.service.model.Category;

public class Entry implements Cloneable, EntryElement {

    private String name, user, password;
    private Category category;
    private boolean password_known;
    private List<EntryElement> elements;

    public Entry(String name, String user, Category category) {
        this.setName(name);
        this.setUser(user);
        this.setCategory(category);
        this.elements = new ArrayList<>();
        this.setPassword_known(false);
    }

    public Entry(String name, String user, Category category, List<EntryElement> elements) {
        this(name, user, category);
        this.elements.addAll(elements);
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public List<EntryElement> getElements() {
        return elements;
    }

    public void setElements(List<EntryElement> elements) {
        this.elements = elements;
        setPassword_known(false);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        this.setPassword_known(false);
    }

    public boolean isPassword_known() {
        return password_known;
    }

    public void setPassword_known(boolean password_known) {
        this.password_known = password_known;
    }

    public String getPassword() {
        return password;
    }

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

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
        this.setPassword_known(false);
    }

    @Override
    public void accept(EntryVisitor visitor) {
        visitor.visit(this);
        for (EntryElement i : elements) {
            i.accept(visitor);
        }
    }
}




Java Source Code List

com.lambdaworks.crypto.PBKDF.java
com.lambdaworks.crypto.SCrypt.java
de.wuthoehle.passworddroid.ApplicationTest.java
de.wuthoehle.passworddroid.PasswordDerivateActivity.java
de.wuthoehle.passworddroid.crypto.AESprng.java
de.wuthoehle.passworddroid.crypto.DerivationRunnableFactory.java
de.wuthoehle.passworddroid.crypto.Util.java
de.wuthoehle.passworddroid.crypto.SCryptParameters.SCryptParametersFactory.java
de.wuthoehle.passworddroid.crypto.SCryptParameters.SCryptParameters.java
de.wuthoehle.passworddroid.service.PasswordDroidService.java
de.wuthoehle.passworddroid.service.model.Category.java
de.wuthoehle.passworddroid.service.model.Container.java
de.wuthoehle.passworddroid.service.model.Database.java
de.wuthoehle.passworddroid.service.model.DerivatorCategory.java
de.wuthoehle.passworddroid.service.model.DerivatorDatabase.java
de.wuthoehle.passworddroid.service.model.FileFormat.java
de.wuthoehle.passworddroid.service.model.entries.Commentable.java
de.wuthoehle.passworddroid.service.model.entries.Countable.java
de.wuthoehle.passworddroid.service.model.entries.Customizable.java
de.wuthoehle.passworddroid.service.model.entries.DerivatorEntry.java
de.wuthoehle.passworddroid.service.model.entries.EntryElement.java
de.wuthoehle.passworddroid.service.model.entries.EntryFactory.java
de.wuthoehle.passworddroid.service.model.entries.EntryVisitor.java
de.wuthoehle.passworddroid.service.model.entries.Entry.java
de.wuthoehle.passworddroid.service.model.entries.GetBundleVisitor.java
de.wuthoehle.passworddroid.service.model.entries.SaltVisitor.java
de.wuthoehle.passworddroid.service.model.entries.Saltable.java
de.wuthoehle.passworddroid.service.model.entries.WriteVisitor.java