JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.auth.policy

Class PolicyReaderOptions

    • Constructor Detail

      • PolicyReaderOptions

        public PolicyReaderOptions()
    • Method Detail

      • isStripAwsPrincipalIdHyphensEnabled

        public boolean isStripAwsPrincipalIdHyphensEnabled()
        Whether AWS principal IDs should have hyphens removed in their name.
      • setStripAwsPrincipalIdHyphensEnabled

        public void setStripAwsPrincipalIdHyphensEnabled(boolean stripAwsPrincipalIdHyphensEnabled)
        Configure whether hyphens should be stripped from the AWS principal IDs that are read from the JSON-formatted policy document. This is useful because AWS account IDs must be specified without hyphens, but the user may not be aware that hyphens should not be used when configuring their policy. This behavior may be undesirable when using IAM AWS principal IDs, which may contain hyphens. In that case, this option may be explicitly disabled. If this is set to false, you must remove hyphens from your AWS principal IDs manually. By default, this is enabled (true).
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /