Class JsonPolicyWriter
- java.lang.Object
-
- software.amazon.awssdk.core.auth.policy.internal.JsonPolicyWriter
-
public class JsonPolicyWriter extends Object
Serializes an AWS policy object to a JSON string, suitable for sending to an AWS service.
-
-
Constructor Summary
Constructors Constructor Description JsonPolicyWriter()Constructs a new instance of JSONPolicyWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringwritePolicyToString(Policy policy)Converts the specified AWS policy object to a JSON string, suitable for passing to an AWS service.
-
-
-
Method Detail
-
writePolicyToString
public String writePolicyToString(Policy policy)
Converts the specified AWS policy object to a JSON string, suitable for passing to an AWS service.- Parameters:
policy- The AWS policy object to convert to a JSON string.- Returns:
- The JSON string representation of the specified policy object.
- Throws:
IllegalArgumentException- If the specified policy is null or invalid and cannot be serialized to a JSON string.
-
-