package com.l7tech.server.identity;

import com.l7tech.common.io.WhirlycacheFactory;
import com.l7tech.identity.AuthenticationException;
import com.l7tech.identity.IdentityProvider;
import com.l7tech.policy.assertion.credential.LoginCredentials;
import com.l7tech.util.ConfigFactory;
import com.l7tech.util.TimeSource;
import com.whirlycott.cache.Cache;
import java.util.logging.Level;
import java.util.logging.Logger;

public final class AuthCache {
   private static final Logger a;
   private static final int b = 59;
   private static final int c = 61;
   public static final int SUCCESS_CACHE_SIZE;
   public static final int FAILURE_CACHE_SIZE;
   private static final boolean d;
   private final TimeSource e;
   private final Cache f;
   private final Cache g;
   private final boolean h;
   private final boolean i;
   private static final String[] j;

   AuthCache() {
      this(j[10], new TimeSource(), SUCCESS_CACHE_SIZE, 59, FAILURE_CACHE_SIZE, 61);
   }

   AuthCache(String var1, TimeSource var2, int var3, int var4, int var5, int var6) {
      this.e = var2;
      Cache var10001;
      if (var3 < 1) {
         var10001 = null;
      } else {
         String[] var7 = j;
         var10001 = WhirlycacheFactory.createCache(var1 + var7[5], var3, var4, WhirlycacheFactory.POLICY_LFU);
      }

      this.f = var10001;
      this.h = this.f == null;
      if (this.h && a.isLoggable(Level.WARNING)) {
         String[] var8 = j;
         a.log(Level.WARNING, var8[0]);
      }

      if (var5 < 1) {
         var10001 = null;
      } else {
         String[] var9 = j;
         var10001 = WhirlycacheFactory.createCache(var1 + var9[8], var5, var6, WhirlycacheFactory.POLICY_LFU);
      }

      this.g = var10001;
      this.i = this.g == null;
      if (this.i && a.isLoggable(Level.WARNING)) {
         a.log(Level.WARNING, j[11]);
      }
   }

   public static int getDefaultAuthSuccessCacheTime() {
      return ConfigFactory.getIntProperty(j[3], 1000);
   }

   public static int getDefaultAuthFailureCacheTime() {
      return ConfigFactory.getIntProperty(j[16], 1000);
   }

   void a() {
      WhirlycacheFactory.shutdown(this.f);
      WhirlycacheFactory.shutdown(this.g);
   }

   public static AuthCache getInstance() {
      return com.l7tech.server.identity.b.a;
   }

   public AuthenticationResult getCachedAuthResult(LoginCredentials var1, IdentityProvider var2) throws AuthenticationException {
      return this.getCachedAuthResult(var1, var2, getDefaultAuthSuccessCacheTime(), getDefaultAuthFailureCacheTime());
   }

   public AuthenticationResult getCachedAuthResult(LoginCredentials param1, IdentityProvider param2, int param3, int param4) throws AuthenticationException {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 000: aload 1
      // 001: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.toString ()Ljava/lang/String;
      // 004: astore 5
      // 006: aload 2
      // 007: invokeinterface com/l7tech/identity/IdentityProvider.getConfig ()Lcom/l7tech/identity/IdentityProviderConfig; 1
      // 00c: invokevirtual com/l7tech/identity/IdentityProviderConfig.getGoid ()Lcom/l7tech/objectmodel/Goid;
      // 00f: astore 6
      // 011: new com/l7tech/server/identity/a
      // 014: dup
      // 015: aload 6
      // 017: aload 1
      // 018: invokespecial com/l7tech/server/identity/a.<init> (Lcom/l7tech/objectmodel/Goid;Lcom/l7tech/policy/assertion/credential/LoginCredentials;)V
      // 01b: astore 7
      // 01d: aload 0
      // 01e: aload 7
      // 020: aload 5
      // 022: aload 2
      // 023: iload 3
      // 024: iload 4
      // 026: invokevirtual com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/server/identity/a;Ljava/lang/String;Lcom/l7tech/identity/IdentityProvider;II)Ljava/lang/Object;
      // 029: astore 8
      // 02b: aload 8
      // 02d: instanceof com/l7tech/server/identity/AuthenticationResult
      // 030: ifeq 048
      // 033: new com/l7tech/server/identity/AuthenticationResult
      // 036: dup
      // 037: aload 8
      // 039: checkcast com/l7tech/server/identity/AuthenticationResult
      // 03c: aload 1
      // 03d: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.getSecurityTokens ()[Lcom/l7tech/security/token/SecurityToken;
      // 040: invokespecial com/l7tech/server/identity/AuthenticationResult.<init> (Lcom/l7tech/server/identity/AuthenticationResult;[Lcom/l7tech/security/token/SecurityToken;)V
      // 043: areturn
      // 044: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 047: athrow
      // 048: aload 8
      // 04a: instanceof com/l7tech/server/identity/AuthenticationResultFailure
      // 04d: ifeq 064
      // 050: new com/l7tech/identity/BadCredentialsException
      // 053: dup
      // 054: aload 8
      // 056: checkcast com/l7tech/server/identity/AuthenticationResultFailure
      // 059: invokevirtual com/l7tech/server/identity/AuthenticationResultFailure.getFailureReason ()Ljava/lang/String;
      // 05c: invokespecial com/l7tech/identity/BadCredentialsException.<init> (Ljava/lang/String;)V
      // 05f: athrow
      // 060: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 063: athrow
      // 064: aload 8
      // 066: ifnull 06f
      // 069: aconst_null
      // 06a: areturn
      // 06b: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 06e: athrow
      // 06f: aload 2
      // 070: instanceof com/l7tech/server/identity/internal/InternalIdentityProvider
      // 073: ifeq 0b1
      // 076: aload 1
      // 077: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.getFormat ()Lcom/l7tech/policy/assertion/credential/CredentialFormat;
      // 07a: getstatic com/l7tech/policy/assertion/credential/CredentialFormat.CLEARTEXT Lcom/l7tech/policy/assertion/credential/CredentialFormat;
      // 07d: if_acmpeq 0a9
      // 080: goto 087
      // 083: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 086: athrow
      // 087: aload 1
      // 088: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.getFormat ()Lcom/l7tech/policy/assertion/credential/CredentialFormat;
      // 08b: getstatic com/l7tech/policy/assertion/credential/CredentialFormat.BASIC Lcom/l7tech/policy/assertion/credential/CredentialFormat;
      // 08e: if_acmpeq 0a9
      // 091: goto 098
      // 094: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 097: athrow
      // 098: aload 1
      // 099: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.getFormat ()Lcom/l7tech/policy/assertion/credential/CredentialFormat;
      // 09c: getstatic com/l7tech/policy/assertion/credential/CredentialFormat.DIGEST Lcom/l7tech/policy/assertion/credential/CredentialFormat;
      // 09f: if_acmpne 0b1
      // 0a2: goto 0a9
      // 0a5: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 0a8: athrow
      // 0a9: bipush 1
      // 0aa: goto 0b2
      // 0ad: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 0b0: athrow
      // 0b1: bipush 0
      // 0b2: istore 9
      // 0b4: getstatic com/l7tech/server/identity/AuthCache.d Z
      // 0b7: ifeq 151
      // 0ba: aload 0
      // 0bb: getfield com/l7tech/server/identity/AuthCache.h Z
      // 0be: ifne 151
      // 0c1: goto 0c8
      // 0c4: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 0c7: athrow
      // 0c8: iload 9
      // 0ca: ifne 151
      // 0cd: goto 0d4
      // 0d0: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 0d3: athrow
      // 0d4: aload 6
      // 0d6: invokestatic com/l7tech/objectmodel/Goid.toString (Lcom/l7tech/objectmodel/Goid;)Ljava/lang/String;
      // 0d9: aload 5
      // 0db: invokedynamic makeConcatWithConstants (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; bsm=java/lang/invoke/StringConcatFactory.makeConcatWithConstants (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; args=[ "\u0001\u0001" ]
      // 0e0: invokevirtual java/lang/String.intern ()Ljava/lang/String;
      // 0e3: astore 10
      // 0e5: aload 10
      // 0e7: dup
      // 0e8: astore 11
      // 0ea: monitorenter
      // 0eb: aload 0
      // 0ec: aload 7
      // 0ee: aload 5
      // 0f0: aload 2
      // 0f1: iload 3
      // 0f2: iload 4
      // 0f4: invokevirtual com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/server/identity/a;Ljava/lang/String;Lcom/l7tech/identity/IdentityProvider;II)Ljava/lang/Object;
      // 0f7: astore 8
      // 0f9: aload 8
      // 0fb: instanceof com/l7tech/server/identity/AuthenticationResult
      // 0fe: ifeq 115
      // 101: new com/l7tech/server/identity/AuthenticationResult
      // 104: dup
      // 105: aload 8
      // 107: checkcast com/l7tech/server/identity/AuthenticationResult
      // 10a: aload 1
      // 10b: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.getSecurityTokens ()[Lcom/l7tech/security/token/SecurityToken;
      // 10e: invokespecial com/l7tech/server/identity/AuthenticationResult.<init> (Lcom/l7tech/server/identity/AuthenticationResult;[Lcom/l7tech/security/token/SecurityToken;)V
      // 111: aload 11
      // 113: monitorexit
      // 114: areturn
      // 115: aload 8
      // 117: instanceof com/l7tech/server/identity/AuthenticationResultFailure
      // 11a: ifeq 131
      // 11d: new com/l7tech/identity/BadCredentialsException
      // 120: dup
      // 121: aload 8
      // 123: checkcast com/l7tech/server/identity/AuthenticationResultFailure
      // 126: invokevirtual com/l7tech/server/identity/AuthenticationResultFailure.getFailureReason ()Ljava/lang/String;
      // 129: invokespecial com/l7tech/identity/BadCredentialsException.<init> (Ljava/lang/String;)V
      // 12c: athrow
      // 12d: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 130: athrow
      // 131: aload 8
      // 133: ifnull 13b
      // 136: aconst_null
      // 137: aload 11
      // 139: monitorexit
      // 13a: areturn
      // 13b: aload 0
      // 13c: aload 1
      // 13d: aload 5
      // 13f: aload 7
      // 141: aload 2
      // 142: invokevirtual com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/policy/assertion/credential/LoginCredentials;Ljava/lang/String;Lcom/l7tech/server/identity/a;Lcom/l7tech/identity/IdentityProvider;)Lcom/l7tech/server/identity/AuthenticationResult;
      // 145: aload 11
      // 147: monitorexit
      // 148: areturn
      // 149: astore 12
      // 14b: aload 11
      // 14d: monitorexit
      // 14e: aload 12
      // 150: athrow
      // 151: aload 0
      // 152: aload 1
      // 153: aload 5
      // 155: aload 7
      // 157: aload 2
      // 158: invokevirtual com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/policy/assertion/credential/LoginCredentials;Ljava/lang/String;Lcom/l7tech/server/identity/a;Lcom/l7tech/identity/IdentityProvider;)Lcom/l7tech/server/identity/AuthenticationResult;
      // 15b: areturn
      // try (84 -> 92): 93 com/l7tech/identity/AuthenticationException
      // try (82 -> 87): 88 com/l7tech/identity/AuthenticationException
      // try (69 -> 78): 78 com/l7tech/identity/AuthenticationException
      // try (62 -> 73): 74 com/l7tech/identity/AuthenticationException
      // try (55 -> 66): 67 com/l7tech/identity/AuthenticationException
      // try (52 -> 59): 60 com/l7tech/identity/AuthenticationException
      // try (46 -> 50): 50 com/l7tech/identity/AuthenticationException
      // try (34 -> 44): 44 com/l7tech/identity/AuthenticationException
      // try (21 -> 32): 32 com/l7tech/identity/AuthenticationException
      // try (105 -> 125): 153 null
      // try (126 -> 136): 136 com/l7tech/identity/AuthenticationException
      // try (126 -> 143): 153 null
      // try (144 -> 152): 153 null
      // try (153 -> 156): 153 null
   }

   private AuthenticationResult a(LoginCredentials param1, String param2, a param3, IdentityProvider param4) throws AuthenticationException {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aconst_null
      // 01: astore 5
      // 03: aconst_null
      // 04: astore 6
      // 06: aload 4
      // 08: checkcast com/l7tech/server/identity/AuthenticatingIdentityProvider
      // 0b: aload 1
      // 0c: invokeinterface com/l7tech/server/identity/AuthenticatingIdentityProvider.authenticate (Lcom/l7tech/policy/assertion/credential/LoginCredentials;)Lcom/l7tech/server/identity/AuthenticationResult; 2
      // 11: astore 5
      // 13: goto 1c
      // 16: astore 7
      // 18: aload 7
      // 1a: astore 6
      // 1c: aconst_null
      // 1d: astore 7
      // 1f: aload 0
      // 20: getfield com/l7tech/server/identity/AuthCache.i Z
      // 23: ifne 6f
      // 26: aload 5
      // 28: ifnonnull 6f
      // 2b: goto 32
      // 2e: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 31: athrow
      // 32: getstatic com/l7tech/server/identity/AuthCache.j [Ljava/lang/String;
      // 35: astore 9
      // 37: aload 9
      // 39: bipush 12
      // 3b: aaload
      // 3c: astore 7
      // 3e: new com/l7tech/server/identity/AuthenticationResultFailure
      // 41: dup
      // 42: aload 0
      // 43: invokevirtual com/l7tech/server/identity/AuthCache.b ()J
      // 46: invokestatic java/lang/Long.valueOf (J)Ljava/lang/Long;
      // 49: aload 6
      // 4b: ifnull 5a
      // 4e: aload 6
      // 50: invokevirtual com/l7tech/identity/AuthenticationException.getMessage ()Ljava/lang/String;
      // 53: goto 5b
      // 56: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 59: athrow
      // 5a: aconst_null
      // 5b: invokespecial com/l7tech/server/identity/AuthenticationResultFailure.<init> (Ljava/lang/Long;Ljava/lang/String;)V
      // 5e: astore 8
      // 60: aload 0
      // 61: getfield com/l7tech/server/identity/AuthCache.g Lcom/whirlycott/cache/Cache;
      // 64: aload 3
      // 65: aload 8
      // 67: invokeinterface com/whirlycott/cache/Cache.store (Ljava/lang/Object;Ljava/lang/Object;)V 3
      // 6c: goto 8e
      // 6f: aload 0
      // 70: getfield com/l7tech/server/identity/AuthCache.h Z
      // 73: ifne 8e
      // 76: getstatic com/l7tech/server/identity/AuthCache.j [Ljava/lang/String;
      // 79: astore 9
      // 7b: aload 9
      // 7d: bipush 9
      // 7f: aaload
      // 80: astore 7
      // 82: aload 0
      // 83: getfield com/l7tech/server/identity/AuthCache.f Lcom/whirlycott/cache/Cache;
      // 86: aload 3
      // 87: aload 5
      // 89: invokeinterface com/whirlycott/cache/Cache.store (Ljava/lang/Object;Ljava/lang/Object;)V 3
      // 8e: aload 7
      // 90: ifnull d6
      // 93: getstatic com/l7tech/server/identity/AuthCache.a Ljava/util/logging/Logger;
      // 96: getstatic java/util/logging/Level.FINE Ljava/util/logging/Level;
      // 99: invokevirtual java/util/logging/Logger.isLoggable (Ljava/util/logging/Level;)Z
      // 9c: ifeq d6
      // 9f: goto a6
      // a2: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // a5: athrow
      // a6: getstatic com/l7tech/server/identity/AuthCache.a Ljava/util/logging/Logger;
      // a9: getstatic java/util/logging/Level.FINE Ljava/util/logging/Level;
      // ac: getstatic com/l7tech/server/identity/AuthCache.j [Ljava/lang/String;
      // af: bipush 14
      // b1: aaload
      // b2: bipush 3
      // b3: anewarray 89
      // b6: dup
      // b7: bipush 0
      // b8: aload 7
      // ba: aastore
      // bb: dup
      // bc: bipush 1
      // bd: aload 2
      // be: aastore
      // bf: dup
      // c0: bipush 2
      // c1: aload 4
      // c3: invokeinterface com/l7tech/identity/IdentityProvider.getConfig ()Lcom/l7tech/identity/IdentityProviderConfig; 1
      // c8: invokevirtual com/l7tech/identity/IdentityProviderConfig.getName ()Ljava/lang/String;
      // cb: aastore
      // cc: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;[Ljava/lang/Object;)V
      // cf: goto d6
      // d2: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // d5: athrow
      // d6: aload 6
      // d8: ifnull e2
      // db: aload 6
      // dd: athrow
      // de: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // e1: athrow
      // e2: aload 5
      // e4: ifnull f9
      // e7: new com/l7tech/server/identity/AuthenticationResult
      // ea: dup
      // eb: aload 5
      // ed: aload 1
      // ee: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.getSecurityTokens ()[Lcom/l7tech/security/token/SecurityToken;
      // f1: invokespecial com/l7tech/server/identity/AuthenticationResult.<init> (Lcom/l7tech/server/identity/AuthenticationResult;[Lcom/l7tech/security/token/SecurityToken;)V
      // f4: areturn
      // f5: invokestatic com/l7tech/server/identity/AuthCache.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // f8: athrow
      // f9: aconst_null
      // fa: areturn
      // try (4 -> 9): 10 com/l7tech/identity/AuthenticationException
      // try (15 -> 20): 21 com/l7tech/identity/AuthenticationException
      // try (29 -> 39): 39 com/l7tech/identity/AuthenticationException
      // try (64 -> 70): 71 com/l7tech/identity/AuthenticationException
      // try (66 -> 95): 96 com/l7tech/identity/AuthenticationException
      // try (98 -> 102): 102 com/l7tech/identity/AuthenticationException
      // try (104 -> 113): 113 com/l7tech/identity/AuthenticationException
   }

   private Object a(a var1, String var2, IdentityProvider var3, int var4, int var5) {
      if (this.h && this.i) {
         return null;
      }

      Long var6 = null;
      AuthenticationResult var7 = null;
      if (!this.h) {
         Object var8 = this.f.retrieve(var1);
         if (var8 != null && var8 instanceof AuthenticationResult) {
            var7 = (AuthenticationResult)var8;
         }
      }

      AuthenticationResultFailure var16 = null;
      if (var7 == null) {
         if (this.i) {
            return null;
         }

         Object var9 = this.g.retrieve(var1);
         if (var9 == null || !(var9 instanceof AuthenticationResultFailure)) {
            return null;
         }

         var16 = (AuthenticationResultFailure)var9;
         var6 = var16.getCacheFailureTime();
      }

      Object var10;
      long var11;
      long var13;
      String var17;
      if (var6 != null) {
         var11 = var6;
         String[] var15 = j;
         var17 = var15[6];
         var13 = var5;
         var10 = var16;
      } else {
         var11 = var7.a();
         String[] var18 = j;
         var17 = var18[13];
         var13 = var4;
         var10 = var7;
      }

      if (var11 + var13 > this.b()) {
         if (a.isLoggable(Level.FINE)) {
            String[] var19 = j;
            a.log(Level.FINE, var19[7], new String[]{var17, var2, var3.getConfig().getName()});
         }

         return var10;
      } else {
         if (a.isLoggable(Level.FINE)) {
            a.log(Level.FINE, j[4], new String[]{var17, var2, var3.getConfig().getName()});
         }

         return null;
      }
   }

   private long b() {
      return this.e.currentTimeMillis();
   }

   static {
      String[] var5 = new String[17];
      int var3 = 0;
      String var2 = "W<.I\u00022Gb<!\n\u00064@l,#^\u000e\"Up \"DG\"Ug!$D\u0000a\\e:mH\u0002$Z$-$Y\u0006#Xa-m\\\u000e \u0014g&#L\u000e&Av(9C\b/0g& \u0004\u000bv@a*%\u0004\u0014$Fr,?\u0004\u000e%Qj=$^\u001eoUq=%i\u0006\"\\a\u00048^\u00029qj(/F\u0002%\u0019e<9B$ Wl,\u000bK\u000e-Av,\u000eK\u0004)QW 7O\u0017e<9B$ Wl,\u0000K\u001f\u0012Ag*(Y\u0014\u0015]i,=G(.B\u0002%\u0014\u007fy0\n\u0001.F$2|WG(G$:9K\u000b$\u0014k'mc\u0003\u0011\u0014&2\u007fWEz\u0014s !FG3Qe<9B\u0002/@m*,^\u0002\b*:8I\u0004$Gw\u0007b($F\u00123Q%Q:$D\u0000aWe*%O\u0003aO44mL\b3\u0014\u007fx0\n\b/\u0014M-\u001d\nE:\u0006yk\b*/,C\u000b4Fa\nw<.I\u00022Gb<!\tE<9B$ Wl,AB($F\u0002%\u0014e<9B\u0002/@m*,^\u000e.Z$*,I\u000f(Zci%K\u0014aVa,#\n\u0003(Ge+!O\u0003aBm(mI\b/Rm.8X\u00065]k'\u0006b($F\u0002%\u0007w<.I\u00022G/G(.B\u000e/S$2}WG Ap!(D\u0013(We=$E\taRk;mQV<\u0014k'mc\u0003\u0011\u0014&2\u007fWE";
      int var4 = "W<.I\u00022Gb<!\n\u00064@l,#^\u000e\"Up \"DG\"Ug!$D\u0000a\\e:mH\u0002$Z$-$Y\u0006#Xa-m\\\u000e \u0014g&#L\u000e&Av(9C\b/0g& \u0004\u000bv@a*%\u0004\u0014$Fr,?\u0004\u000e%Qj=$^\u001eoUq=%i\u0006\"\\a\u00048^\u00029qj(/F\u0002%\u0019e<9B$ Wl,\u000bK\u000e-Av,\u000eK\u0004)QW 7O\u0017e<9B$ Wl,\u0000K\u001f\u0012Ag*(Y\u0014\u0015]i,=G(.B\u0002%\u0014\u007fy0\n\u0001.F$2|WG(G$:9K\u000b$\u0014k'mc\u0003\u0011\u0014&2\u007fWEz\u0014s !FG3Qe<9B\u0002/@m*,^\u0002\b*:8I\u0004$Gw\u0007b($F\u00123Q%Q:$D\u0000aWe*%O\u0003aO44mL\b3\u0014\u007fx0\n\b/\u0014M-\u001d\nE:\u0006yk\b*/,C\u000b4Fa\nw<.I\u00022Gb<!\tE<9B$ Wl,AB($F\u0002%\u0014e<9B\u0002/@m*,^\u000e.Z$*,I\u000f(Zci%K\u0014aVa,#\n\u0003(Ge+!O\u0003aBm(mI\b/Rm.8X\u00065]k'\u0006b($F\u0002%\u0007w<.I\u00022G/G(.B\u000e/S$2}WG Ap!(D\u0013(We=$E\taRk;mQV<\u0014k'mc\u0003\u0011\u0014&2\u007fWE"
         .length();
      char var1 = 'E';
      int var7 = -1;

      label24:
      while (true) {
         byte var10000 = 112;
         String var10001 = var2.substring(++var7, var7 + var1);
         byte var10002 = -1;

         while (true) {
            String var9 = a(var10000, a(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var9;
                  if ((var7 += var1) >= var4) {
                     j = var5;
                     a = Logger.getLogger(AuthCache.class.getName());
                     String[] var8 = j;
                     SUCCESS_CACHE_SIZE = ConfigFactory.getIntProperty(var8[15], 200);
                     FAILURE_CACHE_SIZE = ConfigFactory.getIntProperty(var8[2], 100);
                     d = ConfigFactory.getBooleanProperty(var8[1], true);
                     return;
                  }

                  var1 = var2.charAt(var7);
                  break;
               default:
                  var5[var3++] = var9;
                  if ((var7 += var1) < var4) {
                     var1 = var2.charAt(var7);
                     continue label24;
                  }

                  var2 = "$}x\u0003ea\u0016-m_\u001eEc\u00106{O\nEh\u0010\u0016av\u000e\u0017$}x\u0003ea\u0016-mA\n^F\u0014,dy\u0019CT\u001c(m";
                  var4 = "$}x\u0003ea\u0016-m_\u001eEc\u00106{O\nEh\u0010\u0016av\u000e\u0017$}x\u0003ea\u0016-mA\n^F\u0014,dy\u0019CT\u001c(m".length();
                  var1 = 25;
                  var7 = -1;
            }

            var10000 = 49;
            var10001 = var2.substring(++var7, var7 + var1);
            var10002 = 0;
         }
      }
   }

   private static AuthenticationException a(AuthenticationException var0) {
      return var0;
   }

   private static char[] a(String var0) {
      char[] var10000 = var0.toCharArray();
      if (var10000.length < 2) {
         var10000[0] = (char)(var10000[0] ^ 68);
      }

      return var10000;
   }

   private static String a(int var0, char[] var1) {
      int var10003 = var1.length;
      int var10002 = var0;
      char[] var10001 = var1;
      int var10000 = var10003;

      for (int var2 = 0; var10000 > var2; var2++) {
         var10001[var2] = (char)(var10001[var2] ^ var10002 ^ switch (var2 % 7) {
            case 0 -> 116;
            case 1 -> 57;
            case 2 -> 61;
            case 3 -> 90;
            case 4 -> 23;
            case 5 -> 49;
            default -> 68;
         });
      }

      return new String(var10001).intern();
   }
}
