<commit_before>/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.phenotips.integration.lims247;

import org.xwiki.stability.Unstable;

import com.xpn.xwiki.user.api.XWikiUser;

/**
 * A remembered LIMS authentication, keeping the original installation ID (the PN), the authentication token, and the
 * resulting XWiki user.
 * 
 * @version $Id$
 * @since 1.0M8
 */
@Unstable
public final class LimsAuthentication
{
    /** @see #getToken() */
    private String token;

    /** @see #getUser(). */
    private XWikiUser user;

    /** @see #getPn() */
    private String pn;

    /**
     * Constructor passing all the data.
     * 
     * @param token the authentication token sent by LIMS
     * @param user the authenticated user
     * @param pn the LIMS instance identifier
     */
    public LimsAuthentication(String token, XWikiUser user, String pn)
    {
        this.token = token;
        this.user = user;
        this.pn = pn;
    }
<commit_msg>Issue #539: Add support for integration PhenoTips within LIMS 24/7 Improved javadoc, made a few fields final<commit_after>/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.phenotips.integration.lims247;

import org.xwiki.stability.Unstable;

import com.xpn.xwiki.user.api.XWikiUser;

/**
 * Cached LIMS credentials, storing the original installation ID (the PN), the authentication token, and the resulting
 * PhenoTips user.
 * 
 * @version $Id$
 * @since 1.0M8
 */
@Unstable
public final class LimsAuthentication
{
    /** @see #getToken() */
    private final String token;

    /** @see #getUser(). */
    private final XWikiUser user;

    /** @see #getPn() */
    private final String pn;

    /**
     * Constructor passing all the data.
     * 
     * @param token the authentication token sent by LIMS
     * @param user the authenticated user
     * @param pn the LIMS instance identifier
     */
    public LimsAuthentication(String token, XWikiUser user, String pn)
    {
        this.token = token;
        this.user = user;
        this.pn = pn;
    }

{'fraction_non_alphanumeric': 0.08190578158458243, 'fraction_numerical': 0.011777301927194861, 'mean_word_length': 3.198876404494382, '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': '5941673', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1011, 'n_words': 462}