public class PreSharedKey extends Object
| Constructor and Description |
|---|
PreSharedKey()
Default constructor.
|
PreSharedKey(String identity,
KeyConfig key)
Constructor using identity.
|
PreSharedKey(String identity,
KeyConfig key,
String host,
Integer port)
Constructor using address and identity.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
String |
getHost() |
String |
getIdentity() |
KeyConfig |
getKey() |
Integer |
getPort() |
String |
getVirtualHost() |
int |
hashCode()
Returns a hash code value for the object.
|
void |
setHost(String host) |
void |
setPort(Integer port) |
void |
setVirtualHost(String virtualHost) |
public PreSharedKey()
public PreSharedKey(String identity, KeyConfig key)
identity - The identity of the key.key - The key in hexadecimal notation.public PreSharedKey(String identity, KeyConfig key, String host, Integer port)
identity - The identity of the key.key - The key in hexadecimal notation.host - The hostname of the server using the key.port - The port of the server using the key.public String getHost()
public void setHost(String host)
host - the host to setpublic String getVirtualHost()
public void setVirtualHost(String virtualHost)
virtualHost - the virtualHost to setpublic Integer getPort()
public void setPort(Integer port)
port - the port to setpublic String getIdentity()
public KeyConfig getKey()
public int hashCode()
Copyright © 2019–2024 Teslanet.nl. All rights reserved.