public class MqttContext extends Object implements Serializable
Specifies the MQTT context to use for the test authorizer request
| Constructor and Description |
|---|
MqttContext() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getClientId()
The value of the
clientId key in an MQTT authorization
request. |
ByteBuffer |
getPassword()
The value of the
password key in an MQTT authorization
request. |
String |
getUsername()
The value of the
username key in an MQTT authorization
request. |
int |
hashCode() |
void |
setClientId(String clientId)
The value of the
clientId key in an MQTT authorization
request. |
void |
setPassword(ByteBuffer password)
The value of the
password key in an MQTT authorization
request. |
void |
setUsername(String username)
The value of the
username key in an MQTT authorization
request. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MqttContext |
withClientId(String clientId)
The value of the
clientId key in an MQTT authorization
request. |
MqttContext |
withPassword(ByteBuffer password)
The value of the
password key in an MQTT authorization
request. |
MqttContext |
withUsername(String username)
The value of the
username key in an MQTT authorization
request. |
public String getUsername()
The value of the username key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
The value of the username key in an MQTT
authorization request.
public void setUsername(String username)
The value of the username key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
username -
The value of the username key in an MQTT
authorization request.
public MqttContext withUsername(String username)
The value of the username key in an MQTT authorization
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65535
username -
The value of the username key in an MQTT
authorization request.
public ByteBuffer getPassword()
The value of the password key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
The value of the password key in an MQTT
authorization request.
public void setPassword(ByteBuffer password)
The value of the password key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
password -
The value of the password key in an MQTT
authorization request.
public MqttContext withPassword(ByteBuffer password)
The value of the password key in an MQTT authorization
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65535
password -
The value of the password key in an MQTT
authorization request.
public String getClientId()
The value of the clientId key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
The value of the clientId key in an MQTT
authorization request.
public void setClientId(String clientId)
The value of the clientId key in an MQTT authorization
request.
Constraints:
Length: 1 - 65535
clientId -
The value of the clientId key in an MQTT
authorization request.
public MqttContext withClientId(String clientId)
The value of the clientId key in an MQTT authorization
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 65535
clientId -
The value of the clientId key in an MQTT
authorization request.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.