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 ofIamPolicyReader.- See Also:
IamPolicyReader.create()
-
-
Constructor Summary
Constructors Constructor Description DefaultIamPolicyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()IamPolicyread(byte[] policy)Read a policy from abytearray.IamPolicyread(InputStream policy)Read a policy from anInputStream.IamPolicyread(String policy)Read a policy from aString.
-
-
-
Method Detail
-
read
public IamPolicy read(String policy)
Description copied from interface:IamPolicyReaderRead a policy from aString.This only performs minimal validation on the provided policy.
- Specified by:
readin interfaceIamPolicyReader
-
read
public IamPolicy read(byte[] policy)
Description copied from interface:IamPolicyReaderRead a policy from abytearray.The stream must provide a UTF-8 encoded string representing the policy. This only performs minimal validation on the provided policy.
- Specified by:
readin interfaceIamPolicyReader
-
read
public IamPolicy read(InputStream policy)
Description copied from interface:IamPolicyReaderRead a policy from anInputStream.The stream must provide a UTF-8 encoded string representing the policy. This only performs minimal validation on the provided policy.
- Specified by:
readin interfaceIamPolicyReader
-
-