Class SessionIssuer

    • Method Detail

      • accountId

        public final String accountId()

        The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.

        Returns:
        The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the source account, Identity and Access Management (IAM) user, or role that was used to get the credentials.

        Returns:
        The Amazon Resource Name (ARN) of the source account, Identity and Access Management (IAM) user, or role that was used to get the credentials.
      • principalId

        public final String principalId()

        The unique identifier for the entity that was used to get the credentials.

        Returns:
        The unique identifier for the entity that was used to get the credentials.
      • type

        public final String type()

        The source of the temporary security credentials, such as Root, IAMUser, or Role.

        Returns:
        The source of the temporary security credentials, such as Root, IAMUser, or Role.
      • userName

        public final String userName()

        The name or alias of the user or role that issued the session. This value is null if the credentials were obtained from a root account that doesn't have an alias.

        Returns:
        The name or alias of the user or role that issued the session. This value is null if the credentials were obtained from a root account that doesn't have an alias.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)