Class EventRiskType

    • Method Detail

      • riskDecision

        public final RiskDecisionType riskDecision()

        The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.

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

        Returns:
        The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.
        See Also:
        RiskDecisionType
      • riskDecisionAsString

        public final String riskDecisionAsString()

        The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.

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

        Returns:
        The action taken by adaptive authentication. If NoRisk, your user pool took no action. If AccountTakeover, your user pool applied the adaptive authentication automated response that you configured. If Block, your user pool prevented the attempt.
        See Also:
        RiskDecisionType
      • riskLevel

        public final RiskLevelType riskLevel()

        The risk level that adaptive authentication assessed for the authentication event.

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

        Returns:
        The risk level that adaptive authentication assessed for the authentication event.
        See Also:
        RiskLevelType
      • riskLevelAsString

        public final String riskLevelAsString()

        The risk level that adaptive authentication assessed for the authentication event.

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

        Returns:
        The risk level that adaptive authentication assessed for the authentication event.
        See Also:
        RiskLevelType
      • compromisedCredentialsDetected

        public final Boolean compromisedCredentialsDetected()

        Indicates whether compromised credentials were detected during an authentication event.

        Returns:
        Indicates whether compromised credentials were detected during an authentication event.
      • 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)