Package | Description |
---|---|
com.amazonaws.auth.policy |
Classes for creating custom AWS access control policies.
|
com.amazonaws.auth.policy.internal |
Modifier and Type | Field and Description |
---|---|
static Principal |
Principal.All
Principal instance that includes all the AWS accounts, AWS web services and web identity providers.
|
static Principal |
Principal.AllServices
Principal instance that includes all AWS web services.
|
static Principal |
Principal.AllUsers
Principal instance that includes all users, including anonymous users.
|
static Principal |
Principal.AllWebProviders
Principal instance that includes all the web identity providers.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Principal> |
Statement.principals |
Modifier and Type | Method and Description |
---|---|
java.util.List<Principal> |
Statement.getPrincipals()
Returns the principals associated with this policy statement, indicating
which AWS accounts are affected by this policy statement.
|
Modifier and Type | Method and Description |
---|---|
void |
Statement.setPrincipals(Principal... principals)
Sets the principals associated with this policy statement, indicating
which AWS accounts are affected by this policy statement.
|
Statement |
Statement.withPrincipals(Principal... principals)
Sets the principals associated with this policy statement, and returns
this updated Statement object.
|
Modifier and Type | Method and Description |
---|---|
void |
Statement.setPrincipals(java.util.Collection<Principal> principals)
Sets the principals associated with this policy statement, indicating
which AWS accounts are affected by this policy statement.
|
Modifier and Type | Method and Description |
---|---|
private Principal |
JsonPolicyReader.createPrincipal(java.lang.String schema,
com.fasterxml.jackson.databind.JsonNode principalNode)
Creates a new principal instance for the given schema and the Json node.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<Principal> |
JsonPolicyReader.principalOf(com.fasterxml.jackson.databind.JsonNode principalNodes)
Generates a list of principals from the Principal Json Node
|
Modifier and Type | Method and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
JsonPolicyWriter.groupPrincipalByScheme(java.util.List<Principal> principals)
Groups the list of
Principal s by the Scheme. |
private void |
JsonPolicyWriter.writePrincipals(java.util.List<Principal> principals)
Writes the list of
Principal s to the JSONGenerator. |