public class TestInvokeAuthorizerRequest extends AmazonWebServiceRequest implements Serializable
Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and debug the custom authorization behavior of devices that connect to the AWS IoT device gateway.
| Constructor and Description |
|---|
TestInvokeAuthorizerRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAuthorizerName()
The custom authorizer name.
|
HttpContext |
getHttpContext()
Specifies a test HTTP authorization request.
|
MqttContext |
getMqttContext()
Specifies a test MQTT authorization request.
|
TlsContext |
getTlsContext()
Specifies a test TLS authorization request.
|
String |
getToken()
The token returned by your custom authentication service.
|
String |
getTokenSignature()
The signature made with the token and your custom authentication
service's private key.
|
int |
hashCode() |
void |
setAuthorizerName(String authorizerName)
The custom authorizer name.
|
void |
setHttpContext(HttpContext httpContext)
Specifies a test HTTP authorization request.
|
void |
setMqttContext(MqttContext mqttContext)
Specifies a test MQTT authorization request.
|
void |
setTlsContext(TlsContext tlsContext)
Specifies a test TLS authorization request.
|
void |
setToken(String token)
The token returned by your custom authentication service.
|
void |
setTokenSignature(String tokenSignature)
The signature made with the token and your custom authentication
service's private key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestInvokeAuthorizerRequest |
withAuthorizerName(String authorizerName)
The custom authorizer name.
|
TestInvokeAuthorizerRequest |
withHttpContext(HttpContext httpContext)
Specifies a test HTTP authorization request.
|
TestInvokeAuthorizerRequest |
withMqttContext(MqttContext mqttContext)
Specifies a test MQTT authorization request.
|
TestInvokeAuthorizerRequest |
withTlsContext(TlsContext tlsContext)
Specifies a test TLS authorization request.
|
TestInvokeAuthorizerRequest |
withToken(String token)
The token returned by your custom authentication service.
|
TestInvokeAuthorizerRequest |
withTokenSignature(String tokenSignature)
The signature made with the token and your custom authentication
service's private key.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getAuthorizerName()
The custom authorizer name.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
The custom authorizer name.
public void setAuthorizerName(String authorizerName)
The custom authorizer name.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
authorizerName - The custom authorizer name.
public TestInvokeAuthorizerRequest withAuthorizerName(String authorizerName)
The custom authorizer name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
authorizerName - The custom authorizer name.
public String getToken()
The token returned by your custom authentication service.
Constraints:
Length: 1 - 6144
The token returned by your custom authentication service.
public void setToken(String token)
The token returned by your custom authentication service.
Constraints:
Length: 1 - 6144
token - The token returned by your custom authentication service.
public TestInvokeAuthorizerRequest withToken(String token)
The token returned by your custom authentication service.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 6144
token - The token returned by your custom authentication service.
public String getTokenSignature()
The signature made with the token and your custom authentication service's private key.
Constraints:
Length: 1 - 2560
Pattern: [A-Za-z0-9+/]+={0,2}
The signature made with the token and your custom authentication service's private key.
public void setTokenSignature(String tokenSignature)
The signature made with the token and your custom authentication service's private key.
Constraints:
Length: 1 - 2560
Pattern: [A-Za-z0-9+/]+={0,2}
tokenSignature - The signature made with the token and your custom authentication service's private key.
public TestInvokeAuthorizerRequest withTokenSignature(String tokenSignature)
The signature made with the token and your custom authentication service's private key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2560
Pattern: [A-Za-z0-9+/]+={0,2}
tokenSignature - The signature made with the token and your custom authentication service's private key.
public HttpContext getHttpContext()
Specifies a test HTTP authorization request.
Specifies a test HTTP authorization request.
public void setHttpContext(HttpContext httpContext)
Specifies a test HTTP authorization request.
httpContext - Specifies a test HTTP authorization request.
public TestInvokeAuthorizerRequest withHttpContext(HttpContext httpContext)
Specifies a test HTTP authorization request.
Returns a reference to this object so that method calls can be chained together.
httpContext - Specifies a test HTTP authorization request.
public MqttContext getMqttContext()
Specifies a test MQTT authorization request.
Specifies a test MQTT authorization request.
public void setMqttContext(MqttContext mqttContext)
Specifies a test MQTT authorization request.
mqttContext - Specifies a test MQTT authorization request.
public TestInvokeAuthorizerRequest withMqttContext(MqttContext mqttContext)
Specifies a test MQTT authorization request.
Returns a reference to this object so that method calls can be chained together.
mqttContext - Specifies a test MQTT authorization request.
public TlsContext getTlsContext()
Specifies a test TLS authorization request.
Specifies a test TLS authorization request.
public void setTlsContext(TlsContext tlsContext)
Specifies a test TLS authorization request.
tlsContext - Specifies a test TLS authorization request.
public TestInvokeAuthorizerRequest withTlsContext(TlsContext tlsContext)
Specifies a test TLS authorization request.
Returns a reference to this object so that method calls can be chained together.
tlsContext - Specifies a test TLS authorization request.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.