public class TestInvokeAuthorizerRequest extends AmazonWebServiceRequest implements java.io.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(java.lang.Object obj) |
java.lang.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.
|
java.lang.String |
getToken()
The token returned by your custom authentication service.
|
java.lang.String |
getTokenSignature()
The signature made with the token and your custom authentication
service's private key.
|
int |
hashCode() |
void |
setAuthorizerName(java.lang.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(java.lang.String token)
The token returned by your custom authentication service.
|
void |
setTokenSignature(java.lang.String tokenSignature)
The signature made with the token and your custom authentication
service's private key.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestInvokeAuthorizerRequest |
withAuthorizerName(java.lang.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(java.lang.String token)
The token returned by your custom authentication service.
|
TestInvokeAuthorizerRequest |
withTokenSignature(java.lang.String tokenSignature)
The signature made with the token and your custom authentication
service's private key.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAuthorizerName()
The custom authorizer name.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
The custom authorizer name.
public void setAuthorizerName(java.lang.String authorizerName)
The custom authorizer name.
Constraints:
Length: 1 - 128
Pattern: [\w=,@-]+
authorizerName
- The custom authorizer name.
public TestInvokeAuthorizerRequest withAuthorizerName(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.String getTokenSignature()
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
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. This value must be Base-64-encoded.
public void setTokenSignature(java.lang.String tokenSignature)
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
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. This value must be Base-64-encoded.
public TestInvokeAuthorizerRequest withTokenSignature(java.lang.String tokenSignature)
The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.
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. This value must be Base-64-encoded.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.