public class TestAuthorizationRequest extends AmazonWebServiceRequest implements Serializable
Tests if a specified principal is authorized to perform an AWS IoT action on a specified resource. Use this to test and debug the authorization behavior of devices that connect to the AWS IoT device gateway.
| Constructor and Description |
|---|
TestAuthorizationRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<AuthInfo> |
getAuthInfos()
A list of authorization info objects.
|
String |
getClientId()
The MQTT client ID.
|
String |
getCognitoIdentityPoolId()
The Cognito identity pool ID.
|
List<String> |
getPolicyNamesToAdd()
When testing custom authorization, the policies specified here are
treated as if they are attached to the principal being authorized.
|
List<String> |
getPolicyNamesToSkip()
When testing custom authorization, the policies specified here are
treated as if they are not attached to the principal being authorized.
|
String |
getPrincipal()
The principal.
|
int |
hashCode() |
void |
setAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects.
|
void |
setClientId(String clientId)
The MQTT client ID.
|
void |
setCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
|
void |
setPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are
treated as if they are attached to the principal being authorized.
|
void |
setPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are
treated as if they are not attached to the principal being authorized.
|
void |
setPrincipal(String principal)
The principal.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestAuthorizationRequest |
withAuthInfos(AuthInfo... authInfos)
A list of authorization info objects.
|
TestAuthorizationRequest |
withAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects.
|
TestAuthorizationRequest |
withClientId(String clientId)
The MQTT client ID.
|
TestAuthorizationRequest |
withCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
|
TestAuthorizationRequest |
withPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are
treated as if they are attached to the principal being authorized.
|
TestAuthorizationRequest |
withPolicyNamesToAdd(String... policyNamesToAdd)
When testing custom authorization, the policies specified here are
treated as if they are attached to the principal being authorized.
|
TestAuthorizationRequest |
withPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are
treated as if they are not attached to the principal being authorized.
|
TestAuthorizationRequest |
withPolicyNamesToSkip(String... policyNamesToSkip)
When testing custom authorization, the policies specified here are
treated as if they are not attached to the principal being authorized.
|
TestAuthorizationRequest |
withPrincipal(String principal)
The principal.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getPrincipal()
The principal.
The principal.
public void setPrincipal(String principal)
The principal.
principal - The principal.
public TestAuthorizationRequest withPrincipal(String principal)
The principal.
Returns a reference to this object so that method calls can be chained together.
principal - The principal.
public String getCognitoIdentityPoolId()
The Cognito identity pool ID.
The Cognito identity pool ID.
public void setCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
cognitoIdentityPoolId - The Cognito identity pool ID.
public TestAuthorizationRequest withCognitoIdentityPoolId(String cognitoIdentityPoolId)
The Cognito identity pool ID.
Returns a reference to this object so that method calls can be chained together.
cognitoIdentityPoolId - The Cognito identity pool ID.
public List<AuthInfo> getAuthInfos()
A list of authorization info objects. Simulating authorization will
create a response for each authInfo object in the list.
A list of authorization info objects. Simulating authorization
will create a response for each authInfo object in
the list.
public void setAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects. Simulating authorization will
create a response for each authInfo object in the list.
authInfos -
A list of authorization info objects. Simulating authorization
will create a response for each authInfo object
in the list.
public TestAuthorizationRequest withAuthInfos(AuthInfo... authInfos)
A list of authorization info objects. Simulating authorization will
create a response for each authInfo object in the list.
Returns a reference to this object so that method calls can be chained together.
authInfos -
A list of authorization info objects. Simulating authorization
will create a response for each authInfo object
in the list.
public TestAuthorizationRequest withAuthInfos(Collection<AuthInfo> authInfos)
A list of authorization info objects. Simulating authorization will
create a response for each authInfo object in the list.
Returns a reference to this object so that method calls can be chained together.
authInfos -
A list of authorization info objects. Simulating authorization
will create a response for each authInfo object
in the list.
public String getClientId()
The MQTT client ID.
The MQTT client ID.
public void setClientId(String clientId)
The MQTT client ID.
clientId - The MQTT client ID.
public TestAuthorizationRequest withClientId(String clientId)
The MQTT client ID.
Returns a reference to this object so that method calls can be chained together.
clientId - The MQTT client ID.
public List<String> getPolicyNamesToAdd()
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
public void setPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
policyNamesToAdd - When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
public TestAuthorizationRequest withPolicyNamesToAdd(String... policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
Returns a reference to this object so that method calls can be chained together.
policyNamesToAdd - When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
public TestAuthorizationRequest withPolicyNamesToAdd(Collection<String> policyNamesToAdd)
When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
Returns a reference to this object so that method calls can be chained together.
policyNamesToAdd - When testing custom authorization, the policies specified here are treated as if they are attached to the principal being authorized.
public List<String> getPolicyNamesToSkip()
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
public void setPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
policyNamesToSkip - When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
public TestAuthorizationRequest withPolicyNamesToSkip(String... policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
Returns a reference to this object so that method calls can be chained together.
policyNamesToSkip - When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
public TestAuthorizationRequest withPolicyNamesToSkip(Collection<String> policyNamesToSkip)
When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
Returns a reference to this object so that method calls can be chained together.
policyNamesToSkip - When testing custom authorization, the policies specified here are treated as if they are not attached to the principal being authorized.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.