Return the security name of the current subject on the thread

@return the security name id, or null if there is no subject or no WSCredential
767164
public static String getName() {
        String secname = null;
        WSCredential credential = getCallerWSCredential();
        try {
            if (credential != null && !credential.isUnauthenticated()) {
                String realmSecname = credential.getRealmSecurityName();
                if (realmSecname != null && !realmSecname.isEmpty()) {
                    secname = realmSecname.substring(realmSecname.lastIndexOf(REALM_SEPARATOR) + 1);
                }
            }
        } catch (Exception e) {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                Tr.debug(tc, "Internal error: " + e);
        }
        return secname;
    }
255482
public static String getMainClassName() {
		StackTraceElement trace[] = Thread.currentThread().getStackTrace();
		if (trace.length > 0) {
			return trace[trace.length - 1].getClassName();
		}
		return "Unknown";
	}
190921
public String getId()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getName");    
    String id = getUUID().toString();
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getName", id);      
    return id;
  }
1094115
public Subject getSubject(Subject subject) {
		Subject result = null;
		if(isSecurityEnabled) {
			/*
			 * Check if the SIBSecurity Service is loaded. If it is not loaded,
			 * load SIBSecurity Service Invoke the Login method of the
			 * SIBSecurity Service to get the Subject
			 * 
			 * Existing Code 
			 * String userName = getAuthorisationUtils().getUserName(subject); 
			 * SibLoginFactory loginFactory = SibLoginFactory.getInstance(); 
			 * SibLogin myLogin = loginFactory.createNewSibLogin(); 
			 * subject = myLogin.login(theBus, subject);
			 */
		} else {
			/*
			 * Create a JAVA Subject and return it, anyways it does not matter
			 */
			result = new Subject();
		}
		return result;
	}
563631
@Override
    public String getName() {
        CommonProfile profile = this.getProfile();
        if(null == principalNameAttribute) {
            return profile.getId();
        }
        Object attrValue = profile.getAttribute(principalNameAttribute);
        return (null == attrValue) ? null : String.valueOf(attrValue);
    }
505722
public static String getCurrentTenantName() {
        Profile profile = SecurityUtils.getCurrentProfile();
        if (profile != null) {
            return profile.getTenant();
        } else {
            return null;
        }
    }
230518
@Trivial
    protected SubjectThreadContext getSubjectThreadContext() {
        ThreadLocal<SubjectThreadContext> currentThreadLocal = getThreadLocal();
        SubjectThreadContext subjectThreadContext = currentThreadLocal.get();
        if (subjectThreadContext == null) {
            subjectThreadContext = new SubjectThreadContext();
            currentThreadLocal.set(subjectThreadContext);
        }
        return subjectThreadContext;
    }
747472
public String getName(WebSocketSession pClient) {
        for (Map.Entry<String, WebSocketSession> item : mClients.entrySet()) {
            if (item.getValue().equals(pClient) || item.getValue().getId().equals(pClient.getId())) {
                return item.getKey();
            }
        }
        return StringUtil.EMPTY_STRING;
    }
133451
public String getName() {
        FeatureDescriptor fd = getFeatureDescriptor();
        if (fd == null) {
            return null;
        }

        return fd.getName();
    }
1228409
public static String getUserName() throws Exception {
        Subject subject = getRunAsSubjectInternal();
        if (subject == null) {
            return null;
        }
        Set<Principal> principals = subject.getPrincipals();
        Iterator<Principal> principalsIterator = principals.iterator();
        if (principalsIterator.hasNext()) {
            Principal principal = principalsIterator.next();
            return principal.getName();
        }
        return null;
    }
341354
public String getId() {
        String value = null;
        if (_iSess != null) {
            value = _iSess.getId();
        }
        return value;
    }
26638
public String getName()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.entry(tc, "getName");
    String name = null;
    if(_outputHandler!=null)
    {
      name = _outputHandler.getDestinationName();
    }
    else
    {
      name = _anycastInputHandler.getDestName();
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) 
      SibTr.exit(tc, "getName", name);
    return name;  
  }
1179858
public String getId() {
        if (id == null) {
            synchronized (this) {
                if (id == null) {
                    id = "rpc-cfg-" + ID_GENERATOR.getAndIncrement();
                }
            }
        }
        return id;
    }
457821
public String getUserName()
    {
        String strUserName = null;
        Record recUserInfo = (Record)this.getUserInfo();
        if (recUserInfo != null)
            strUserName = recUserInfo.getField(UserInfoModel.USER_NAME).toString();
        if ((strUserName == null) || (strUserName.length() == 0))
            strUserName = super.getUserName();
        return strUserName;
    }
1048271
public String getName()
  {    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "getName");

    String name=consumerDispatcher.getConsumerDispatcherState().getSubscriberID();
    
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())             
      SibTr.exit(tc, "getName", name);
    return name;
  }
746505
public ObjectName getRequestLog()
    {
        Object o = _httpContext.getRequestLog();
        if (o==null)
            return null;
        
        ObjectName[] on=getComponentMBeans(new Object[]{o},_rlMap);
        if (on.length>0)
            return on[0];
        return null;
    }
1278937
public String getName()
    {
        GVRSceneObject owner = getOwnerObject();
        String name = "";

        if (owner != null)
        {
            name = owner.getName();
            if (name == null)
                return "";
        }
        return name;
    }