Class Session

    • Method Detail

      • uid

        public final String uid()

        The unique identifier of the session.

        Returns:
        The unique identifier of the session.
      • mfaStatus

        public final MfaStatus mfaStatus()

        Indicates whether or not multi-factor authencation (MFA) was used during authentication.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.attributes.mfaAuthenticated.

        If the service returns an enum value that is not available in the current SDK version, mfaStatus will return MfaStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from mfaStatusAsString().

        Returns:
        Indicates whether or not multi-factor authencation (MFA) was used during authentication.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.attributes.mfaAuthenticated.

        See Also:
        MfaStatus
      • mfaStatusAsString

        public final String mfaStatusAsString()

        Indicates whether or not multi-factor authencation (MFA) was used during authentication.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.attributes.mfaAuthenticated.

        If the service returns an enum value that is not available in the current SDK version, mfaStatus will return MfaStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from mfaStatusAsString().

        Returns:
        Indicates whether or not multi-factor authencation (MFA) was used during authentication.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.attributes.mfaAuthenticated.

        See Also:
        MfaStatus
      • createdTime

        public final Instant createdTime()

        The timestamp for when the session was created.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.attributes.creationDate.

        Returns:
        The timestamp for when the session was created.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.attributes.creationDate.

      • issuer

        public final String issuer()

        Identifier of the session issuer.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.sessionIssuer.arn.

        Returns:
        Identifier of the session issuer.

        In Amazon Web Services CloudTrail, you can find this value as userIdentity.sessionContext.sessionIssuer.arn.

      • serializableBuilderClass

        public static Class<? extends Session.Builder> serializableBuilderClass()
      • 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)