001/*
002 * Copyright 2012 Atteo.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.atteo.moonshine.shiro.database;
017
018import javax.persistence.Column;
019import javax.persistence.Entity;
020import javax.persistence.Id;
021
022@Entity
023public class Account {
024    @Id
025    private String login;
026
027    @Column(nullable = false)
028    private String hashedPassword;
029
030    @Column(length = 256, nullable = false)
031    private String salt;
032
033    public String getLogin() {
034        return login;
035    }
036
037    public void setLogin(String login) {
038        this.login = login;
039    }
040
041    public void setSalt(String salt) {
042        this.salt = salt;
043    }
044
045    public String getSalt() {
046        return salt;
047    }
048
049    public String getHashedPassword() {
050        return hashedPassword;
051    }
052
053    public void setHashedPassword(String hashedPassword) {
054        this.hashedPassword = hashedPassword;
055    }
056}