<commit_before>/*
 * Copyright 2014 satrapu.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ro.satrapu.churchmanagement.security;

import java.io.Serializable;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * Contains all details needed to authenticate a user.
 *
 * @author satrapu
 */
@Data
@EqualsAndHashCode
@ToString
public class AuthenticationDetails implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotNull
    @Size(min = 1, max = 400)
    private String userName;

    @NotNull
    @Size(min = 1, max = 100)
    private String password;
}<commit_msg>Increased user password length to a reasonable value. Updated class comments.<commit_after>/*
 * Copyright 2014 satrapu.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ro.satrapu.churchmanagement.security;

import java.io.Serializable;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * Represents the authentication details (user name and password) a user will enter at login page in order to access this application.
 *
 * @author satrapu
 */
@Data
@EqualsAndHashCode
@ToString
public class AuthenticationDetails implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotNull
    @Size(min = 1, max = 400)
    private String userName;

    @NotNull
    @Size(min = 1, max = 1000)
    private String password;
}
{'fraction_non_alphanumeric': 0.07683529859262077, 'fraction_numerical': 0.013313046785850133, 'mean_word_length': 4.038314176245211, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '142369', 'n_tokens_mistral': 730, 'n_tokens_neox': 691, 'n_words': 295}