Return security name.

@param string $securityType
@param string $securityId

@return string
552804
public function resolveName($securityType, $securityId)
    {
        if ($securityType !== $this->userClass) {
            return null;
        }

        return $this->userManager->find($securityId)->getDisplayName();
    }
1169272
public static function root($secure = null)
    {
        $framework = '/public/index.php';
        $server = request('PHP_SELF', '', 'server');
        $scheme = (is_null($secure) ? request('REQUEST_SCHEME', '', 'server') : ($secure ? 'https' : 'http')).'://';
        $serverName = request('SERVER_NAME', '', 'server');

        $parts = explode($framework, $server);

        $root = $parts[0].'/';

        return $scheme.$serverName.$root;
    }
75936
public function secure($secure = null)
    {
        if (func_num_args() === 0) {
            return $this->_data['secure'];
        }
        return $this->_data['secure'] = (boolean) $secure;
    }
922427
public function getIdPrivilegeByName(string $name): string
    {
        if (isset($this->privilege[$name])) {
            return (string) $this->privilege[$name]['id'];
        }
        return '';
    }
1097807
public function getTypeName()
    {
        if (isset($this->resourceType)) {
            return $this->resourceType;
        }
        $classInfo = explode("\\", get_class($this));
        return end($classInfo);
    }
883198
public function creditCard($securityCode, $brand)
    {
        $card = $this->newCard($securityCode, $brand);

        $this->setType(self::PAYMENTTYPE_CREDITCARD);
        $this->setCreditCard($card);

        return $card;
    }
838622
private DeleteSecurityGroupResponseType deleteSecurityGroup(final String securityGroupId) {
        DeleteSecurityGroupResponseType ret = new DeleteSecurityGroupResponseType();
        ret.setRequestId(UUID.randomUUID().toString());
        mockSecurityGroupController.deleteSecurityGroup(securityGroupId);
        return ret;
    }
710669
public boolean isSecurityDomain(String securityDomainName) throws Exception {
        Address addr = Address.root().add(SUBSYSTEM, SUBSYSTEM_SECURITY);
        String haystack = SECURITY_DOMAIN;
        return null != findNodeInList(addr, haystack, securityDomainName);
    }
1003012
public function getBaseUrl($type = Mage_Core_Model_Store::URL_TYPE_LINK, $secure = null)
    {
        return Mage::getBaseUrl($type, $secure);
    }
269604
private function createOrRetrieveSecurityIdentityId(SecurityIdentityInterface $sid)
    {
        if (false !== $id = $this->connection->executeQuery($this->getSelectSecurityIdentityIdSql($sid))->fetchColumn()) {
            return $id;
        }

        $this->connection->executeQuery($this->getInsertSecurityIdentitySql($sid));

        return $this->connection->executeQuery($this->getSelectSecurityIdentityIdSql($sid))->fetchColumn();
    }
793982
public function hash(string $password): string
    {
        return Security::hash($password, $this->hashType, true);
    }
266138
static function hashType()
    {
        $ini = eZINI::instance();
        $type = strtolower( $ini->variable( 'UserSettings', 'HashType' ) );

        return self::passwordHashTypeID( $type );
    }
41888
public function generateOpenApi(Collection $documentation, array $securityConfig)
    {
        $components = collect();
        if ($documentation->has('components')) {
            $components = collect($documentation->get('components'));
        }

        $securitySchemes = collect();
        if ($components->has('securitySchemes')) {
            $securitySchemes = collect($components->get('securitySchemes'));
        }

        foreach ($securityConfig as $key => $cfg) {
            $securitySchemes->offsetSet($key, self::arrayToObject($cfg));
        }

        $components->offsetSet('securitySchemes', $securitySchemes);

        $documentation->offsetSet('components', $components);

        return $documentation;
    }
655848
public function read($sessionId): string
    {
        $identifier = $this->cryptProvider->makeSessionIdentifier($sessionId);

        if (!$this->storageDriver->sessionExists($identifier)) {
            return '';
        }

        $content = $this->storageDriver->get($identifier);
        if (!$content) {
            return '';
        }

        return $this->cryptProvider->decryptSessionData($sessionId, $content);
    }
833511
protected function getScheme( $secure )
	{
		if ( is_null( $secure ) )
		{
			if ( is_null( $this->cachedSchema ) )
			{
				$this->cachedSchema = $this->forceSchema ?: $this->request->getScheme() . '://';
			}

			return $this->cachedSchema;
		}

		return $secure ? 'https://' : 'http://';
	}
1207915
private function getUserObjectPermission(SecurityCondition $securityCondition, UserInterface $user)
    {
        $permissions = $this->getPermissions($securityCondition->getObjectType(), $securityCondition->getObjectId());

        return $this->getUserObjectPermissionByArray($permissions, $user);
    }
891674
public MockSecurityGroup deleteSecurityGroup(final String securityGroupId) {

        if (securityGroupId != null && allMockSecurityGroup.containsKey(securityGroupId)) {
            return allMockSecurityGroup.remove(securityGroupId);
        }

        return null;
    }