- getAddress() - Method in class com.wireguard.config.InetNetwork
-
- getAddresses() - Method in class com.wireguard.config.Interface
-
Returns the set of IP addresses assigned to the interface.
- getAllowedIps() - Method in class com.wireguard.config.Peer
-
Returns the peer's set of allowed IPs.
- getBuilder() - Method in class com.wireguard.android.backend.GoBackend.VpnService
-
- getBytes() - Method in class com.wireguard.crypto.Key
-
Returns the key as an array of bytes.
- getDnsServers() - Method in class com.wireguard.config.Interface
-
Returns the set of DNS servers associated with the interface.
- getEndpoint() - Method in class com.wireguard.config.Peer
-
Returns the peer's endpoint.
- getExcludedApplications() - Method in class com.wireguard.config.Interface
-
Returns the set of applications excluded from using the interface.
- getFormat() - Method in exception com.wireguard.android.backend.BackendException
-
Get the format string values associated with the instance.
- getFormat() - Method in exception com.wireguard.android.util.RootShell.RootShellException
-
- getFormat() - Method in exception com.wireguard.crypto.KeyFormatException
-
- getHost() - Method in class com.wireguard.config.InetEndpoint
-
- getIncludedApplications() - Method in class com.wireguard.config.Interface
-
Returns the set of applications included exclusively for using the interface.
- getInterface() - Method in class com.wireguard.config.Config
-
Returns the interface section of the configuration.
- getKey() - Method in class com.wireguard.config.Attribute
-
- getKeyPair() - Method in class com.wireguard.config.Interface
-
Returns the public/private key pair used by the interface.
- getLength() - Method in enum com.wireguard.crypto.Key.Format
-
- getListenPort() - Method in class com.wireguard.config.Interface
-
Returns the UDP port number that the WireGuard interface will listen on.
- getLocation() - Method in exception com.wireguard.config.BadConfigException
-
- getMask() - Method in class com.wireguard.config.InetNetwork
-
- getMtu() - Method in class com.wireguard.config.Interface
-
Returns the MTU used for the WireGuard interface.
- getName() - Method in interface com.wireguard.android.backend.Tunnel
-
Get the name of the tunnel, which should always pass the !isNameInvalid test.
- getName() - Method in enum com.wireguard.config.BadConfigException.Location
-
- getName() - Method in enum com.wireguard.config.BadConfigException.Section
-
- getParsingClass() - Method in exception com.wireguard.config.ParseException
-
- getPeers() - Method in class com.wireguard.config.Config
-
Returns a list of the configuration's peer sections.
- getPersistentKeepalive() - Method in class com.wireguard.config.Peer
-
Returns the peer's persistent keepalive.
- getPort() - Method in class com.wireguard.config.InetEndpoint
-
- getPreSharedKey() - Method in class com.wireguard.config.Peer
-
Returns the peer's pre-shared key.
- getPrivateKey() - Method in class com.wireguard.crypto.KeyPair
-
Returns the private key from the key pair.
- getPublicKey() - Method in class com.wireguard.config.Peer
-
Returns the peer's public key.
- getPublicKey() - Method in class com.wireguard.crypto.KeyPair
-
Returns the public key from the key pair.
- getReason() - Method in exception com.wireguard.android.backend.BackendException
-
Get the reason for this exception.
- getReason() - Method in exception com.wireguard.android.util.RootShell.RootShellException
-
- getReason() - Method in exception com.wireguard.config.BadConfigException
-
- getResolved() - Method in class com.wireguard.config.InetEndpoint
-
Generate an InetEndpoint
instance with the same port and the host resolved using DNS
to a numeric address.
- getRunningTunnelNames() - Method in interface com.wireguard.android.backend.Backend
-
Enumerate names of currently-running tunnels.
- getRunningTunnelNames() - Method in class com.wireguard.android.backend.GoBackend
-
Method to get the names of running tunnels.
- getRunningTunnelNames() - Method in class com.wireguard.android.backend.WgQuickBackend
-
- getSection() - Method in exception com.wireguard.config.BadConfigException
-
- getState(Tunnel) - Method in interface com.wireguard.android.backend.Backend
-
Get the state of a tunnel.
- getState(Tunnel) - Method in class com.wireguard.android.backend.GoBackend
-
- getState(Tunnel) - Method in class com.wireguard.android.backend.WgQuickBackend
-
- getStatistics(Tunnel) - Method in interface com.wireguard.android.backend.Backend
-
Get statistics about traffic and errors on this tunnel.
- getStatistics(Tunnel) - Method in class com.wireguard.android.backend.GoBackend
-
- getStatistics(Tunnel) - Method in class com.wireguard.android.backend.WgQuickBackend
-
- getText() - Method in exception com.wireguard.config.BadConfigException
-
- getText() - Method in exception com.wireguard.config.ParseException
-
- getType() - Method in exception com.wireguard.crypto.KeyFormatException
-
- getValue() - Method in class com.wireguard.config.Attribute
-
- getVersion() - Method in interface com.wireguard.android.backend.Backend
-
Determine version of underlying backend.
- getVersion() - Method in class com.wireguard.android.backend.GoBackend
-
Get the version of the underlying wireguard-go library.
- getVersion() - Method in class com.wireguard.android.backend.WgQuickBackend
-
- GoBackend - Class in com.wireguard.android.backend
-
Implementation of
Backend
that uses the wireguard-go userspace implementation to provide
WireGuard tunnels.
- GoBackend(Context) - Constructor for class com.wireguard.android.backend.GoBackend
-
Public constructor for GoBackend.
- GoBackend.AlwaysOnCallback - Interface in com.wireguard.android.backend
-
- GoBackend.VpnService - Class in com.wireguard.android.backend
-
- toBase64() - Method in class com.wireguard.crypto.Key
-
Encodes the key to base64.
- toHex() - Method in class com.wireguard.crypto.Key
-
Encodes the key to hexadecimal ASCII characters.
- ToolsInstaller - Class in com.wireguard.android.util
-
Helper to install WireGuard tools to the system partition.
- ToolsInstaller(Context, RootShell) - Constructor for class com.wireguard.android.util.ToolsInstaller
-
- toString() - Method in class com.wireguard.config.Config
-
Converts the Config
into a string suitable for debugging purposes.
- toString() - Method in class com.wireguard.config.InetEndpoint
-
- toString() - Method in class com.wireguard.config.InetNetwork
-
- toString() - Method in class com.wireguard.config.Interface
-
Converts the Interface
into a string suitable for debugging purposes.
- toString() - Method in class com.wireguard.config.Peer
-
Converts the Peer
into a string suitable for debugging purposes.
- totalRx() - Method in class com.wireguard.android.backend.Statistics
-
Get the total received traffic by all the peers being tracked by this instance
- totalTx() - Method in class com.wireguard.android.backend.Statistics
-
Get the total transmitted traffic by all the peers being tracked by this instance
- toWgQuickString() - Method in class com.wireguard.config.Config
-
Converts the Config
into a string suitable for use as a wg-quick
configuration file.
- toWgQuickString() - Method in class com.wireguard.config.Interface
-
Converts the Interface
into a string suitable for inclusion in a wg-quick
configuration file.
- toWgQuickString() - Method in class com.wireguard.config.Peer
-
Converts the Peer
into a string suitable for inclusion in a wg-quick
configuration file.
- toWgUserspaceString() - Method in class com.wireguard.config.Config
-
Serializes the Config
for use with the WireGuard cross-platform userspace API.
- toWgUserspaceString() - Method in class com.wireguard.config.Interface
-
Serializes the Interface
for use with the WireGuard cross-platform userspace API.
- toWgUserspaceString() - Method in class com.wireguard.config.Peer
-
Serializes the Peer
for use with the WireGuard cross-platform userspace API.
- Tunnel - Interface in com.wireguard.android.backend
-
Represents a WireGuard tunnel.
- Tunnel.State - Enum in com.wireguard.android.backend
-
Enum class to represent all possible states of a
Tunnel
.
- valueOf(String) - Static method in enum com.wireguard.android.backend.BackendException.Reason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.wireguard.android.backend.Tunnel.State
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.wireguard.android.util.RootShell.RootShellException.Reason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.wireguard.config.BadConfigException.Location
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.wireguard.config.BadConfigException.Reason
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.wireguard.config.BadConfigException.Section
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.wireguard.crypto.Key.Format
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.wireguard.crypto.KeyFormatException.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.wireguard.android.backend.BackendException.Reason
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.wireguard.android.backend.Tunnel.State
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.wireguard.android.util.RootShell.RootShellException.Reason
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.wireguard.config.BadConfigException.Location
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.wireguard.config.BadConfigException.Reason
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.wireguard.config.BadConfigException.Section
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.wireguard.crypto.Key.Format
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.wireguard.crypto.KeyFormatException.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- verify(byte[], byte[], byte[]) - Static method in class com.wireguard.crypto.Ed25519
-
Returns true if the EdDSA signature
with message
, can be verified with
publicKey
.
- VpnService() - Constructor for class com.wireguard.android.backend.GoBackend.VpnService
-