AuthClientConfig.smali

.class public final Lcom/amazonaws/mobileconnectors/cognitoauth/util/AuthClientConfig;
.super Ljava/lang/Object;
.source "AuthClientConfig.java"


# static fields
.field private static REFRESH_THRESHOLD_MAX:J = 0x1b7740L

.field private static REFRESH_THRESHOLD_MIN:J = 0x0L

.field private static refreshThreshold:J = 0x493e0L


# direct methods
.method static constructor <clinit>()V
    .registers 0

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getRefreshThreshold()J
    .registers 2

    .line 1
    sget-wide v0, Lcom/amazonaws/mobileconnectors/cognitoauth/util/AuthClientConfig;->refreshThreshold:J

    return-wide v0
.end method

.method public static setRefreshThreshold(J)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/security/InvalidParameterException;
        }
    .end annotation

    .line 1
    sget-wide v0, Lcom/amazonaws/mobileconnectors/cognitoauth/util/AuthClientConfig;->REFRESH_THRESHOLD_MAX:J

    cmp-long v2, p0, v0

    if-gtz v2, :cond_f

    sget-wide v0, Lcom/amazonaws/mobileconnectors/cognitoauth/util/AuthClientConfig;->REFRESH_THRESHOLD_MIN:J

    cmp-long v2, p0, v0

    if-ltz v2, :cond_f

    .line 2
    sput-wide p0, Lcom/amazonaws/mobileconnectors/cognitoauth/util/AuthClientConfig;->refreshThreshold:J

    return-void

    .line 3
    :cond_f
    new-instance p0, Ljava/security/InvalidParameterException;

    const/4 p1, 0x2

    new-array p1, p1, [Ljava/lang/Object;

    const/4 v0, 0x0

    sget-wide v1, Lcom/amazonaws/mobileconnectors/cognitoauth/util/AuthClientConfig;->REFRESH_THRESHOLD_MIN:J

    .line 4
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    aput-object v1, p1, v0

    const/4 v0, 0x1

    sget-wide v1, Lcom/amazonaws/mobileconnectors/cognitoauth/util/AuthClientConfig;->REFRESH_THRESHOLD_MAX:J

    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    aput-object v1, p1, v0

    const-string v0, "The value of refreshThreshold must between %d and %d seconds"

    .line 5
    invoke-static {v0, p1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Ljava/security/InvalidParameterException;-><init>(Ljava/lang/String;)V

    throw p0
.end method