IpAddress

class OC\Security\Normalizer\IpAddress
Class IpAddress is used for normalizing IPv4 and IPv6 addresses in security
relevant contexts in Nextcloud.
Source:lib/private/Security/Normalizer/IpAddress.php#39

Properties

Methods

public OC\Security\Normalizer\IpAddress::__construct($ip)
Source:

lib/private/Security/Normalizer/IpAddress.php#46

Parameters:
  • $ip (string) IP to normalized
public OC\Security\Normalizer\IpAddress::getSubnet()
Gets either the /32 (IPv4) or the /64 (IPv6) subnet of an IP address
Source:lib/private/Security/Normalizer/IpAddress.php#100
Returns:string
public OC\Security\Normalizer\IpAddress::__toString()
Returns the specified IP address
Source:lib/private/Security/Normalizer/IpAddress.php#118
Returns:string