Class AuthenticationResultType

    • Method Detail

      • accessToken

        public final String accessToken()

        A valid access token that Amazon Cognito issued to the user who you want to authenticate.

        Returns:
        A valid access token that Amazon Cognito issued to the user who you want to authenticate.
      • expiresIn

        public final Integer expiresIn()

        The expiration period of the authentication result in seconds.

        Returns:
        The expiration period of the authentication result in seconds.
      • tokenType

        public final String tokenType()

        The token type.

        Returns:
        The token type.
      • refreshToken

        public final String refreshToken()

        The refresh token.

        Returns:
        The refresh token.
      • idToken

        public final String idToken()

        The ID token.

        Returns:
        The ID token.
      • newDeviceMetadata

        public final NewDeviceMetadataType newDeviceMetadata()

        The new device metadata from an authentication result.

        Returns:
        The new device metadata from an authentication result.
      • 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)