<commit_before><commit_msg>#1064 : added as registration service authorization helper<commit_after>package edu.northwestern.bioinformatics.studycalendar.grid;

import org.globus.wsrf.security.SecurityManager;

public class RegistrationGridServiceAuthorizationHelper {
	
	public String getCurrentUsername() {
		String gridIdentity = SecurityManager.getManager().getCaller();
		if (gridIdentity == null){ 
			return null;
		}else {
			return gridIdentity.substring(gridIdentity.indexOf("/CN=")+4, gridIdentity.length());
		}
	}

}
{'fraction_non_alphanumeric': 0.10795454545454546, 'fraction_numerical': 0.00946969696969697, 'mean_word_length': 6.2465753424657535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7398008', 'n_tokens_mistral': 161, 'n_tokens_neox': 143, 'n_words': 28}