<commit_before>package edu.duke.cabig.c3pr.accesscontrol;

import java.util.List;

import org.acegisecurity.GrantedAuthority;
import org.acegisecurity.userdetails.UserDetails;
import org.globus.gsi.GlobusCredential;

/**
 * Created by IntelliJ IDEA. User: kherm Date: Dec 11, 2007 Time: 9:58:53 PM To change this template
 * use File | Settings | File Templates.
 */
public class WebSSOUser extends AuthorizedUser {

    private String gridId;

    private String delegatedEPR;

    private String firstName;

    private String lastName;

    private GlobusCredential gridCredential;

    public WebSSOUser(String string, String string1, boolean b, boolean b1, boolean b2, boolean b3,
                    GrantedAuthority[] grantedAuthorities, List<Object> protectionGroupRoleContextList) throws IllegalArgumentException {
        super(string, string1, b, b1, b2, b3, grantedAuthorities, protectionGroupRoleContextList);
    }

    public WebSSOUser(UserDetails user) {
        this(user.getUsername(), user.getPassword(), true, true, true, true, user.getAuthorities(), 
        		((AuthorizedUser)user).getProtectionGroupRoleContextList());
    }

    public String getGridId() {
        return gridId;
    }

    public void setGridId(String gridId) {
        this.gridId = gridId;
    }

    public String getDelegatedEPR() {
        return delegatedEPR;
    }

    public void setDelegatedEPR(String delegatedEPR) {
        this.delegatedEPR = delegatedEPR;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public GlobusCredential getGridCredential() {
        return gridCredential;
    }

    public void setGridCredential(GlobusCredential gridCredential) {
        this.gridCredential = gridCredential;
    }
}
<commit_msg>CPR-1846: Unified security development.<commit_after>package edu.duke.cabig.c3pr.accesscontrol;

import org.acegisecurity.GrantedAuthority;
import org.acegisecurity.userdetails.UserDetails;
import org.globus.gsi.GlobusCredential;

import gov.nih.nci.cabig.ctms.suite.authorization.ProvisioningSession;

/**
 * Created by IntelliJ IDEA. User: kherm Date: Dec 11, 2007 Time: 9:58:53 PM To change this template
 * use File | Settings | File Templates.
 */
public class WebSSOUser extends AuthorizedUser {

    private String gridId;

    private String delegatedEPR;

    private String firstName;

    private String lastName;

    private GlobusCredential gridCredential;

    public WebSSOUser(String string, String string1, boolean b, boolean b1, boolean b2, boolean b3,
                    GrantedAuthority[] grantedAuthorities, ProvisioningSession provisioningSession) throws IllegalArgumentException {
        super(string, string1, b, b1, b2, b3, grantedAuthorities, provisioningSession);
    }

    public WebSSOUser(UserDetails user) {
        this(user.getUsername(), user.getPassword(), true, true, true, true, user.getAuthorities(), 
        		((AuthorizedUser)user).getProvisioningSession());
    }

    public String getGridId() {
        return gridId;
    }

    public void setGridId(String gridId) {
        this.gridId = gridId;
    }

    public String getDelegatedEPR() {
        return delegatedEPR;
    }

    public void setDelegatedEPR(String delegatedEPR) {
        this.delegatedEPR = delegatedEPR;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public GlobusCredential getGridCredential() {
        return gridCredential;
    }

    public void setGridCredential(GlobusCredential gridCredential) {
        this.gridCredential = gridCredential;
    }
}

{'fraction_non_alphanumeric': 0.08070866141732283, 'fraction_numerical': 0.010826771653543307, 'mean_word_length': 3.22996878251821, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1796638', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1200, 'n_words': 293}