Return service identity, if two urls have the same identity, then same service

@return the identity
519307
@Override
    public String getIdentity() {
        return protocol + Constants.PROTOCOL_SEPARATOR + host + ":" + port +
                "/" + getParameter(URLParamType.group.getName(), URLParamType.group.getValue()) + "/" +
                getPath() + "/" + getParameter(URLParamType.version.getName(), URLParamType.version.getValue()) +
                "/" + getParameter(URLParamType.nodeType.getName(), URLParamType.nodeType.getValue());
    }
1300191
public String getIdentityProvider() {
		if (isFacebookUser()) {
			return "facebook";
		} else if (isGooglePlusUser()) {
			return "google";
		} else if (isGitHubUser()) {
			return "github";
		} else if (isTwitterUser()) {
			return "twitter";
		} else if (isLinkedInUser()) {
			return "linkedin";
		} else if (isMicrosoftUser()) {
			return "microsoft";
		} else if (isLDAPUser()) {
			return "ldap";
		} else if (isSAMLUser()) {
			return "saml";
		} else {
			return "generic";
		}
	}
154370
public static String[] getServiceTypes()
    {
        Set result = new HashSet();

        // All all providers
        Provider[] providers = Security.getProviders();
        for ( int i = 0; i < providers.length; i++ )
        {
            // Get services provided by each provider
            Set keys = providers[i].keySet();
            for ( Iterator it = keys.iterator(); it.hasNext(); )
            {
                String key = (String) it.next();
                key = key.split( " " )[0];

                if ( key.startsWith( "Alg.Alias." ) )
                {
                    // Strip the alias
                    key = key.substring( 10 );
                }
                int ix = key.indexOf( '.' );
                result.add( key.substring( 0, ix ) );
            }
        }
        return (String[]) result.toArray( new String[result.size()] );
    }
283271
public com.google.protobuf.ByteString
      getServiceNameBytes() {
    java.lang.Object ref = serviceName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      serviceName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
179171
public String getUniqueIdentifier() {
        // TODO should be only this.getRegistry() + Constants.FORWARD_SLASH + this.getRepositoryName()  , tag should be added outside
        return this.getRegistry() + Constants.FORWARD_SLASH + this.getRepositoryName() + Constants.COLON + this.getImageTags().get(0);
    }
767637
public String getAlias()
    {
        String alias = this.properties.get(BaseWebappServlet.ALIAS);
        if (alias == null)
            alias = this.properties.get(BaseWebappServlet.ALIAS.substring(BaseWebappServlet.PROPERTY_PREFIX.length()));
        return HttpServiceTracker.addURLPath(null, alias);
    }
452854
public String getServicePid()
    {
        String servicePid = context.getProperty(BundleConstants.SERVICE_PID);
        if (servicePid != null)
            return servicePid;
        servicePid = this.getServiceClassName();
        if (servicePid == null)
            servicePid = this.getClass().getName();
        return ClassFinderActivator.getPackageName(servicePid, false);
    }
1176477
function getServiceNames(serviceUuid, uuid) {
    if (servicesLookup[serviceUuid]) {
      var serviceName = servicesLookup[serviceUuid].name;
      var characteristicName = servicesLookup[serviceUuid].characteristics[uuid].name;      
    }

    var info = serviceUuid;
    if (serviceName) { info += ' (' + serviceName + ')' };
    info +=' -> ' + uuid;
    if (characteristicName) { info += ' (' + characteristicName +' )' }

    return info;
}
684318
public String id(){
        HttpServletRequest r = RequestContext.getHttpRequest();
        if(r == null){
            return null;
        }
        HttpSession session = r.getSession(false);
        return session == null ? null : session.getId();
    }
968662
private String rdIdentifier()
	{
		StringBuilder id = new StringBuilder();
		id.append(ch);

		while (restOfName(rdCh()))
		{
			id.append(ch);
		}

		return id.toString();
	}
642500
public int identity()
  {
    if (tc.isEntryEnabled()) Tr.entry(tc, "identity",this);
    if (tc.isEntryEnabled()) Tr.exit(tc, "identity",new Integer(_identity));
    return _identity;
  }
30977
private ICredentialRepository getValidCredentialRepository()
    {
        ICredentialRepository repository = getCredentialRepository();

        if (repository == null)
        {
            throw new UnsupportedOperationException(
                    String.format("An instance of the %s service must be " +
                                    "configured in order to use this feature.",
                            ICredentialRepository.class.getName()
                    )
            );
        }

        return repository;
    }
746896
public function getIdentity()
    {
        if($this->hasIdentity()){
            if($this->identity === null){
                
                $identity = $this->authenticationService->getIdentity();
                $identity = array_merge(
                    $identity,
                    $this->getOption('identity')        
                );
                
                // Extend with real identity information
                if ($this->getServiceBroker()->exists('User')) {
                    $userService = $this->getServiceBroker()->service('User');
                    
                    // Access filter needs to be disabled to prevent infinite looping
                    $userService->disableFilter('access');
                    
                    $extension = $userService->find(
                        '$'.$identity['username'],
                        array('id', 'email')
                    );
                    
                    if ($extension) {
                        $identity = array_merge($identity, $extension);
                    }
                }
                
                $this->identity = $identity;
            }
            
            return $this->identity;
        }
        else{
            return null;
        }
    }
605708
public static String[] getServiceName(String[] argv, String[] serviceId) 
      throws IllegalArgumentException {
    ArrayList<String> newArgvList = new ArrayList<String>();
    for (int i = 0; i < argv.length; i++) {
      if ("-service".equals(argv[i])) {
        if (i+1 == argv.length ) {
          throw new IllegalArgumentException("Doesn't have service id");
        }
        serviceId[0] = argv[++i];
      } else {
        newArgvList.add(argv[i]);
      }
    }
    String[] newArgvs = new String[newArgvList.size()];
    newArgvList.toArray(newArgvs);
    return newArgvs;
  }
1085606
public static String getId(){
        String paramId = RequestContext.getHttpRequest().getParameter("id");
        if(paramId != null && RequestContext.getHttpRequest().getAttribute("id") != null){
            LOGGER.warn("WARNING: probably you have 'id' supplied both as a HTTP parameter, as well as in the URI. Choosing parameter over URI value.");
        }

        String theId;
        if(paramId != null){
            theId =  paramId;
        }else{
            Object id = RequestContext.getHttpRequest().getAttribute("id");
            theId =  id != null ? id.toString() : null;
        }
        return Util.blank(theId) ? null : theId;
    }
1243780
public static org.apereo.cas.web.UrlValidator getInstance() {
        if (INSTANCE == null) {
            INSTANCE = new SimpleUrlValidator(UrlValidator.getInstance(), DomainValidator.getInstance());
        }
        return INSTANCE;
    }
957667
public Observable<List<Domain>> getDomainsAsync() {
        return getDomainsWithServiceResponseAsync().map(new Func1<ServiceResponse<List<Domain>>, List<Domain>>() {
            @Override
            public List<Domain> call(ServiceResponse<List<Domain>> response) {
                return response.body();
            }
        });
    }