Class DefaultIamPolicyReader

java.lang.Object
software.amazon.awssdk.policybuilder.iam.internal.DefaultIamPolicyReader
All Implemented Interfaces:
IamPolicyReader

public final class DefaultIamPolicyReader extends Object implements IamPolicyReader
Default implementation of IamPolicyReader.
See Also:
  • Constructor Details

    • DefaultIamPolicyReader

      public DefaultIamPolicyReader()
  • Method Details

    • read

      public IamPolicy read(String policy)
      Description copied from interface: IamPolicyReader
      Read a policy from a String.

      This only performs minimal validation on the provided policy.

      Specified by:
      read in interface IamPolicyReader
    • read

      public IamPolicy read(byte[] policy)
      Description copied from interface: IamPolicyReader
      Read a policy from a byte array.

      The stream must provide a UTF-8 encoded string representing the policy. This only performs minimal validation on the provided policy.

      Specified by:
      read in interface IamPolicyReader
    • read

      public IamPolicy read(InputStream policy)
      Description copied from interface: IamPolicyReader
      Read a policy from an InputStream.

      The stream must provide a UTF-8 encoded string representing the policy. This only performs minimal validation on the provided policy.

      Specified by:
      read in interface IamPolicyReader
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object