package com.l7tech.server;

import com.l7tech.common.password.PasswordHasher;
import com.l7tech.gateway.common.transport.SsgConnector.Endpoint;
import com.l7tech.identity.AuthenticationException;
import com.l7tech.server.admin.AdminSessionManager;
import com.l7tech.server.security.PasswordEnforcerManager;
import jakarta.servlet.ServletConfig;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

public class PasswdServlet extends AuthenticatableHttpServlet {
   private PasswordEnforcerManager passwordEnforcerManager;
   private PasswordHasher passwordHasher;
   private AdminSessionManager adminSessionManager;
   static final long serialVersionUID = -3423084256915963308L;
   private static final String[] b;

   @Override
   public void init(ServletConfig var1) throws ServletException {
      super.init(var1);
      WebApplicationContext var2 = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
      String[] var3 = b;
      this.passwordEnforcerManager = (PasswordEnforcerManager)var2.getBean(var3[23], PasswordEnforcerManager.class);
      this.passwordHasher = (PasswordHasher)var2.getBean(var3[1], PasswordHasher.class);
      this.adminSessionManager = (AdminSessionManager)var2.getBean(var3[18], AdminSessionManager.class);
   }

   @Override
   protected String getFeature() {
      return b[25];
   }

   @Override
   protected Endpoint getRequiredEndpoint() {
      return Endpoint.PASSWD;
   }

   protected void doPost(HttpServletRequest param1, HttpServletResponse param2) throws ServletException, IOException {
      // $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: invokeinterface jakarta/servlet/http/HttpServletRequest.isSecure ()Z 1
      // 006: ifne 027
      // 009: aload 0
      // 00a: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 00d: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 010: bipush 17
      // 012: aaload
      // 013: invokevirtual java/util/logging/Logger.warning (Ljava/lang/String;)V
      // 016: aload 2
      // 017: sipush 403
      // 01a: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 01d: bipush 2
      // 01e: aaload
      // 01f: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 022: return
      // 023: invokestatic com/l7tech/server/PasswdServlet.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 026: athrow
      // 027: aload 0
      // 028: aload 1
      // 029: invokevirtual com/l7tech/server/PasswdServlet.authenticateRequestBasic (Ljakarta/servlet/http/HttpServletRequest;)[Lcom/l7tech/server/identity/AuthenticationResult;
      // 02c: astore 3
      // 02d: goto 0a6
      // 030: astore 4
      // 032: aload 0
      // 033: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 036: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 039: aload 4
      // 03b: invokevirtual com/l7tech/identity/AuthenticationException.getMessage ()Ljava/lang/String;
      // 03e: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 041: astore 13
      // 043: aload 13
      // 045: bipush 8
      // 047: aaload
      // 048: swap
      // 049: 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" ]
      // 04e: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;)V
      // 051: aload 2
      // 052: sipush 401
      // 055: aload 13
      // 057: bipush 5
      // 058: aaload
      // 059: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 05c: return
      // 05d: astore 4
      // 05f: aload 0
      // 060: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 063: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 066: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 069: astore 13
      // 06b: aload 13
      // 06d: bipush 3
      // 06e: aaload
      // 06f: aload 4
      // 071: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 074: aload 2
      // 075: sipush 503
      // 078: aload 13
      // 07a: bipush 16
      // 07c: aaload
      // 07d: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 080: return
      // 081: astore 4
      // 083: aload 0
      // 084: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 087: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 08a: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 08d: astore 13
      // 08f: aload 13
      // 091: bipush 21
      // 093: aaload
      // 094: aload 4
      // 096: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 099: aload 2
      // 09a: sipush 503
      // 09d: aload 13
      // 09f: bipush 10
      // 0a1: aaload
      // 0a2: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 0a5: return
      // 0a6: aload 3
      // 0a7: ifnull 0b7
      // 0aa: aload 3
      // 0ab: arraylength
      // 0ac: bipush 1
      // 0ad: if_icmpge 0d6
      // 0b0: goto 0b7
      // 0b3: invokestatic com/l7tech/server/PasswdServlet.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 0b6: athrow
      // 0b7: aload 0
      // 0b8: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 0bb: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 0be: bipush 15
      // 0c0: aaload
      // 0c1: invokevirtual java/util/logging/Logger.warning (Ljava/lang/String;)V
      // 0c4: aload 2
      // 0c5: sipush 401
      // 0c8: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 0cb: bipush 12
      // 0cd: aaload
      // 0ce: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 0d1: return
      // 0d2: invokestatic com/l7tech/server/PasswdServlet.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 0d5: athrow
      // 0d6: aconst_null
      // 0d7: astore 4
      // 0d9: aconst_null
      // 0da: astore 5
      // 0dc: aload 3
      // 0dd: astore 6
      // 0df: aload 6
      // 0e1: arraylength
      // 0e2: istore 7
      // 0e4: bipush 0
      // 0e5: istore 8
      // 0e7: iload 8
      // 0e9: iload 7
      // 0eb: if_icmpge 173
      // 0ee: aload 6
      // 0f0: iload 8
      // 0f2: aaload
      // 0f3: astore 9
      // 0f5: aload 9
      // 0f7: invokevirtual com/l7tech/server/identity/AuthenticationResult.getUser ()Lcom/l7tech/identity/User;
      // 0fa: astore 10
      // 0fc: aload 0
      // 0fd: invokevirtual com/l7tech/server/PasswdServlet.getApplicationContext ()Lorg/springframework/context/ApplicationContext;
      // 100: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 103: astore 13
      // 105: aload 13
      // 107: bipush 20
      // 109: aaload
      // 10a: invokeinterface org/springframework/context/ApplicationContext.getBean (Ljava/lang/String;)Ljava/lang/Object; 2
      // 10f: checkcast com/l7tech/server/identity/IdentityProviderFactory
      // 112: astore 11
      // 114: aload 11
      // 116: aload 10
      // 118: invokeinterface com/l7tech/identity/User.getProviderId ()Lcom/l7tech/objectmodel/Goid; 1
      // 11d: invokevirtual com/l7tech/server/identity/IdentityProviderFactory.getProvider (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/identity/IdentityProvider;
      // 120: astore 12
      // 122: aload 12
      // 124: invokeinterface com/l7tech/identity/IdentityProvider.getConfig ()Lcom/l7tech/identity/IdentityProviderConfig; 1
      // 129: invokevirtual com/l7tech/identity/IdentityProviderConfig.getTypeVal ()I
      // 12c: getstatic com/l7tech/identity/IdentityProviderType.INTERNAL Lcom/l7tech/identity/IdentityProviderType;
      // 12f: invokevirtual com/l7tech/identity/IdentityProviderType.toVal ()I
      // 132: if_icmpne 146
      // 135: aload 10
      // 137: checkcast com/l7tech/identity/internal/InternalUser
      // 13a: astore 4
      // 13c: aload 12
      // 13e: checkcast com/l7tech/server/identity/internal/InternalIdentityProvider
      // 141: astore 5
      // 143: goto 173
      // 146: goto 16d
      // 149: astore 11
      // 14b: aload 0
      // 14c: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 14f: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 152: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 155: astore 13
      // 157: aload 13
      // 159: bipush 26
      // 15b: aaload
      // 15c: aload 11
      // 15e: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 161: aload 2
      // 162: sipush 500
      // 165: aload 11
      // 167: invokevirtual com/l7tech/objectmodel/FindException.getMessage ()Ljava/lang/String;
      // 16a: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 16d: iinc 8 1
      // 170: goto 0e7
      // 173: aload 4
      // 175: ifnonnull 196
      // 178: aload 0
      // 179: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 17c: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 17f: bipush 0
      // 180: aaload
      // 181: invokevirtual java/util/logging/Logger.warning (Ljava/lang/String;)V
      // 184: aload 2
      // 185: sipush 403
      // 188: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 18b: bipush 9
      // 18d: aaload
      // 18e: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 191: return
      // 192: invokestatic com/l7tech/server/PasswdServlet.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 195: athrow
      // 196: aload 1
      // 197: getstatic com/l7tech/common/protocol/SecureSpanConstants$HttpHeaders.HEADER_NEWPASSWD Ljava/lang/String;
      // 19a: invokeinterface jakarta/servlet/http/HttpServletRequest.getHeader (Ljava/lang/String;)Ljava/lang/String; 2
      // 19f: astore 6
      // 1a1: aload 0
      // 1a2: aload 1
      // 1a3: invokevirtual com/l7tech/server/PasswdServlet.findCredentialsBasic (Ljakarta/servlet/http/HttpServletRequest;)Lcom/l7tech/policy/assertion/credential/LoginCredentials;
      // 1a6: astore 7
      // 1a8: new java/lang/String
      // 1ab: dup
      // 1ac: aload 7
      // 1ae: invokevirtual com/l7tech/policy/assertion/credential/LoginCredentials.getCredentials ()[C
      // 1b1: invokespecial java/lang/String.<init> ([C)V
      // 1b4: astore 8
      // 1b6: aload 6
      // 1b8: ifnull 1cb
      // 1bb: aload 6
      // 1bd: invokevirtual java/lang/String.length ()I
      // 1c0: bipush 1
      // 1c1: if_icmpge 1f9
      // 1c4: goto 1cb
      // 1c7: invokestatic com/l7tech/server/PasswdServlet.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 1ca: athrow
      // 1cb: aload 0
      // 1cc: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 1cf: getstatic com/l7tech/common/protocol/SecureSpanConstants$HttpHeaders.HEADER_NEWPASSWD Ljava/lang/String;
      // 1d2: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 1d5: bipush 11
      // 1d7: aaload
      // 1d8: swap
      // 1d9: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 1dc: bipush 14
      // 1de: aaload
      // 1df: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 1e4: invokevirtual java/util/logging/Logger.warning (Ljava/lang/String;)V
      // 1e7: aload 2
      // 1e8: sipush 400
      // 1eb: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 1ee: bipush 24
      // 1f0: aaload
      // 1f1: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 1f4: return
      // 1f5: invokestatic com/l7tech/server/PasswdServlet.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 1f8: athrow
      // 1f9: new java/lang/String
      // 1fc: dup
      // 1fd: aload 6
      // 1ff: bipush 1
      // 200: invokestatic com/l7tech/util/HexUtils.decodeBase64 (Ljava/lang/String;Z)[B
      // 203: getstatic com/l7tech/util/Charsets.UTF8 Ljava/nio/charset/Charset;
      // 206: invokespecial java/lang/String.<init> ([BLjava/nio/charset/Charset;)V
      // 209: astore 6
      // 20b: aload 0
      // 20c: getfield com/l7tech/server/PasswdServlet.adminSessionManager Lcom/l7tech/server/admin/AdminSessionManager;
      // 20f: aload 4
      // 211: invokevirtual com/l7tech/server/admin/AdminSessionManager.isAdministrativeUser (Lcom/l7tech/identity/User;)Z
      // 214: istore 9
      // 216: iload 9
      // 218: ifeq 230
      // 21b: aload 0
      // 21c: getfield com/l7tech/server/PasswdServlet.adminSessionManager Lcom/l7tech/server/admin/AdminSessionManager;
      // 21f: aload 4
      // 221: aload 8
      // 223: aload 6
      // 225: invokevirtual com/l7tech/server/admin/AdminSessionManager.changePassword (Lcom/l7tech/identity/User;Ljava/lang/String;Ljava/lang/String;)Z
      // 228: pop
      // 229: goto 286
      // 22c: invokestatic com/l7tech/server/PasswdServlet.a (Lcom/l7tech/identity/AuthenticationException;)Lcom/l7tech/identity/AuthenticationException;
      // 22f: athrow
      // 230: new com/l7tech/identity/internal/InternalUser
      // 233: dup
      // 234: invokespecial com/l7tech/identity/internal/InternalUser.<init> ()V
      // 237: astore 10
      // 239: aload 10
      // 23b: aload 4
      // 23d: invokevirtual com/l7tech/identity/internal/InternalUser.copyFrom (Lcom/l7tech/identity/User;)V
      // 240: aload 10
      // 242: aload 4
      // 244: invokevirtual com/l7tech/identity/internal/InternalUser.getVersion ()I
      // 247: invokevirtual com/l7tech/identity/internal/InternalUser.setVersion (I)V
      // 24a: aload 0
      // 24b: getfield com/l7tech/server/PasswdServlet.passwordHasher Lcom/l7tech/common/password/PasswordHasher;
      // 24e: aload 6
      // 250: getstatic com/l7tech/util/Charsets.UTF8 Ljava/nio/charset/Charset;
      // 253: invokevirtual java/lang/String.getBytes (Ljava/nio/charset/Charset;)[B
      // 256: invokeinterface com/l7tech/common/password/PasswordHasher.hashPassword ([B)Ljava/lang/String; 2
      // 25b: astore 11
      // 25d: aload 0
      // 25e: getfield com/l7tech/server/PasswdServlet.passwordEnforcerManager Lcom/l7tech/server/security/PasswordEnforcerManager;
      // 261: aload 10
      // 263: aload 6
      // 265: aload 8
      // 267: invokevirtual com/l7tech/server/security/PasswordEnforcerManager.isPasswordPolicyCompliant (Lcom/l7tech/identity/User;Ljava/lang/String;Ljava/lang/String;)V
      // 26a: aload 10
      // 26c: aload 11
      // 26e: invokevirtual com/l7tech/identity/internal/InternalUser.setHashedPassword (Ljava/lang/String;)V
      // 271: aload 5
      // 273: invokeinterface com/l7tech/server/identity/internal/InternalIdentityProvider.getUserManager ()Lcom/l7tech/identity/UserManager; 1
      // 278: checkcast com/l7tech/server/identity/internal/InternalUserManager
      // 27b: astore 12
      // 27d: aload 12
      // 27f: aload 10
      // 281: invokeinterface com/l7tech/server/identity/internal/InternalUserManager.update (Lcom/l7tech/identity/User;)V 2
      // 286: aload 0
      // 287: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 28a: aload 4
      // 28c: invokevirtual com/l7tech/identity/internal/InternalUser.getLogin ()Ljava/lang/String;
      // 28f: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 292: astore 13
      // 294: aload 13
      // 296: bipush 6
      // 298: aaload
      // 299: swap
      // 29a: 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" ]
      // 29f: invokevirtual java/util/logging/Logger.fine (Ljava/lang/String;)V
      // 2a2: aload 2
      // 2a3: sipush 200
      // 2a6: invokeinterface jakarta/servlet/http/HttpServletResponse.setStatus (I)V 2
      // 2ab: aload 2
      // 2ac: invokeinterface jakarta/servlet/http/HttpServletResponse.getOutputStream ()Ljakarta/servlet/ServletOutputStream; 1
      // 2b1: astore 10
      // 2b3: aload 10
      // 2b5: aload 13
      // 2b7: bipush 7
      // 2b9: aaload
      // 2ba: invokevirtual java/lang/String.getBytes ()[B
      // 2bd: invokevirtual java/io/OutputStream.write ([B)V
      // 2c0: aload 10
      // 2c2: invokevirtual java/io/OutputStream.close ()V
      // 2c5: goto 311
      // 2c8: astore 9
      // 2ca: aload 0
      // 2cb: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 2ce: getstatic java/util/logging/Level.SEVERE Ljava/util/logging/Level;
      // 2d1: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 2d4: astore 13
      // 2d6: aload 13
      // 2d8: bipush 13
      // 2da: aaload
      // 2db: aload 9
      // 2dd: invokestatic com/l7tech/util/ExceptionUtils.getDebugException (Ljava/lang/Throwable;)Ljava/lang/Throwable;
      // 2e0: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 2e3: aload 2
      // 2e4: sipush 400
      // 2e7: aload 13
      // 2e9: bipush 19
      // 2eb: aaload
      // 2ec: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 2ef: goto 311
      // 2f2: astore 9
      // 2f4: aload 0
      // 2f5: getfield com/l7tech/server/PasswdServlet.logger Ljava/util/logging/Logger;
      // 2f8: getstatic java/util/logging/Level.WARNING Ljava/util/logging/Level;
      // 2fb: getstatic com/l7tech/server/PasswdServlet.b [Ljava/lang/String;
      // 2fe: bipush 4
      // 2ff: aaload
      // 300: aload 9
      // 302: invokevirtual java/util/logging/Logger.log (Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
      // 305: aload 2
      // 306: sipush 500
      // 309: aload 9
      // 30b: invokevirtual com/l7tech/objectmodel/ObjectModelException.getMessage ()Ljava/lang/String;
      // 30e: invokestatic com/l7tech/server/PasswdServlet.sendBackError (Ljakarta/servlet/http/HttpServletResponse;ILjava/lang/String;)V
      // 311: return
      // try (0 -> 16): 16 com/l7tech/identity/AuthenticationException
      // try (18 -> 22): 23 com/l7tech/identity/AuthenticationException
      // try (18 -> 22): 44 com/l7tech/gateway/common/LicenseException
      // try (18 -> 22): 62 com/l7tech/server/transport/ListenerException
      // try (82 -> 102): 102 com/l7tech/identity/AuthenticationException
      // try (80 -> 86): 87 com/l7tech/identity/AuthenticationException
      // try (125 -> 152): 154 com/l7tech/objectmodel/FindException
      // try (246 -> 256): 256 com/l7tech/identity/AuthenticationException
      // try (205 -> 231): 231 com/l7tech/identity/AuthenticationException
      // try (203 -> 209): 210 com/l7tech/identity/AuthenticationException
      // try (172 -> 187): 187 com/l7tech/identity/AuthenticationException
      // try (241 -> 318): 319 com/l7tech/objectmodel/InvalidPasswordException
      // try (241 -> 318): 338 com/l7tech/objectmodel/ObjectModelException
   }

   private static void sendBackError(HttpServletResponse var0, int var1, String var2) throws IOException {
      var0.setStatus(var1);
      var0.getOutputStream().print(var2);
      var0.getOutputStream().close();
   }

   protected void doGet(HttpServletRequest var1, HttpServletResponse var2) throws ServletException, IOException {
      throw new ServletException(b[22]);
   }

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

   static {
      String[] var5 = new String[27];
      int var3 = 0;
      String var2 = "\u00148Y'%Cxg\"]m2E}2(H9`I\u007fg#T9`Ib3(I#!L,2>^?l\u0000~\"9N?.Ib m\u000f}s\u000e\u000e7,H>7O~#\u0005Z>(E~\u001b\u0017!^,3E,$\"V(`Bm$&\u001b\"6E~g%O90S$\u0014(I;)Cig$Hm5N`..^#3EhkmI(4U~)$U*`\u0015<w+$\"N!$\u0000b(9\u001b./M|+(O(`O|\"?Z9)ObkmI(4U~)$U*`\u0015<w\u000f\u0005,_m#Ri#(U9)A`4\u001a\u0017,H>7O~#mX%!Nk\")\u001b+/R,2>^?`\u001c\u0017,H>7O~#mX%!Nk\")\u001b>5Co\">]8,Lu \u0005,_m#Ri#(U9)A`4a\u001b?%Ty5#R#'\u00008w|\u0001m^\b#W4`U\u007f\"?Hm\"E`(#\\$.G,3\"\u001b9(E,.#O(2Nm+mR)%Nx.9Bm0Rc1$_(2\u0000m5(\u001b,5Td(?R7%D,3\"\u001b.(Ab (\u001b9(Ee5mK,3S{(?_2\u0000,O(7Aug,N5)Le&?Bm3E~1$X(`Nc3m^#!B`\")\u001b\".\u0000x/$Hm0O~35\u0013%^m2E}2(H9`De#mU\"4\u0000e).W8$E,&mU(7\u0000|&>H:/Rhg$Um(Em#(Im\u0014\t\"\u001b;!Le#mX?%Di)9R,,S\u00167,H>7O~#mL,3\u0000b(9\u001b;!Le#\u0010kmI(4U~)$U*`\u0014<wc$\t\"\u001b;!Le#mX?%Di)9R,,S g?^95Rb.#\\mt\u0010=i0\u0000,O(7Aug,N5)Le&?Bm3E~1$X(`Nc3m^#!B`\")\u001b/9\u0000`..^#3E>\u0015(J8%Sxg.Z %\u0000c1(Im)N\u007f\".N?%\u0000o/,U#%L,o#T9`Hx3=Hdn\u0000^\"9N?.Ib m\u000f}s\u000e\u0013&)V$.si4>R\".mm),\\(2\u0019\u0012#Z/,E,3\"\u001b.(Ab (\u001b=!S\u007f0\"I)\u0017.)^#4Ix>\u001dI\"6Ih\"?},#Tc542\u0014(I;)Cig$Hm.Oxg(U,\"Li#mT#`Td.>\u001b=/RxkmI(4U~)$U*`\u0015<w3\n(O%/D,)\"Om3U|7\"I9%D7g.^?4\u0000~\";T.!Te(#\u001b 5Sxg8H(`pC\u0014\u0019\u00177,H>7O~#\bU+/Ro\"?v,.Ak\"?\u001e\n$H>)Nkg\"Im%M|34\u001b#%W,7,H>7O~#c";
      int var4 = "\u00148Y'%Cxg\"]m2E}2(H9`I\u007fg#T9`Ib3(I#!L,2>^?l\u0000~\"9N?.Ib m\u000f}s\u000e\u000e7,H>7O~#\u0005Z>(E~\u001b\u0017!^,3E,$\"V(`Bm$&\u001b\"6E~g%O90S$\u0014(I;)Cig$Hm5N`..^#3EhkmI(4U~)$U*`\u0015<w+$\"N!$\u0000b(9\u001b./M|+(O(`O|\"?Z9)ObkmI(4U~)$U*`\u0015<w\u000f\u0005,_m#Ri#(U9)A`4\u001a\u0017,H>7O~#mX%!Nk\")\u001b+/R,2>^?`\u001c\u0017,H>7O~#mX%!Nk\")\u001b>5Co\">]8,Lu \u0005,_m#Ri#(U9)A`4a\u001b?%Ty5#R#'\u00008w|\u0001m^\b#W4`U\u007f\"?Hm\"E`(#\\$.G,3\"\u001b9(E,.#O(2Nm+mR)%Nx.9Bm0Rc1$_(2\u0000m5(\u001b,5Td(?R7%D,3\"\u001b.(Ab (\u001b9(Ee5mK,3S{(?_2\u0000,O(7Aug,N5)Le&?Bm3E~1$X(`Nc3m^#!B`\")\u001b\".\u0000x/$Hm0O~35\u0013%^m2E}2(H9`De#mU\"4\u0000e).W8$E,&mU(7\u0000|&>H:/Rhg$Um(Em#(Im\u0014\t\"\u001b;!Le#mX?%Di)9R,,S\u00167,H>7O~#mL,3\u0000b(9\u001b;!Le#\u0010kmI(4U~)$U*`\u0014<wc$\t\"\u001b;!Le#mX?%Di)9R,,S g?^95Rb.#\\mt\u0010=i0\u0000,O(7Aug,N5)Le&?Bm3E~1$X(`Nc3m^#!B`\")\u001b/9\u0000`..^#3E>\u0015(J8%Sxg.Z %\u0000c1(Im)N\u007f\".N?%\u0000o/,U#%L,o#T9`Hx3=Hdn\u0000^\"9N?.Ib m\u000f}s\u000e\u0013&)V$.si4>R\".mm),\\(2\u0019\u0012#Z/,E,3\"\u001b.(Ab (\u001b=!S\u007f0\"I)\u0017.)^#4Ix>\u001dI\"6Ih\"?},#Tc542\u0014(I;)Cig$Hm.Oxg(U,\"Li#mT#`Td.>\u001b=/RxkmI(4U~)$U*`\u0015<w3\n(O%/D,)\"Om3U|7\"I9%D7g.^?4\u0000~\";T.!Te(#\u001b 5Sxg8H(`pC\u0014\u0019\u00177,H>7O~#\bU+/Ro\"?v,.Ak\"?\u001e\n$H>)Nkg\"Im%M|34\u001b#%W,7,H>7O~#c"
         .length();
      char var1 = '7';
      int var7 = -1;

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

         while (true) {
            String var8 = b(var10000, b(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var8;
                  if ((var7 += var1) >= var4) {
                     b = var5;
                     return;
                  }

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

                  var2 = "JV7EW=\u0017\u0003c$@M)\u0016+Z\\0_Z~\u001cVGePQ3\u0002UV1V\u001e1\u0002\\A$GW1\u001c\u0015\u00137VJ+\u0000WZ+T\u001ekB\t";
                  var4 = "JV7EW=\u0017\u0003c$@M)\u0016+Z\\0_Z~\u001cVGePQ3\u0002UV1V\u001e1\u0002\\A$GW1\u001c\u0015\u00137VJ+\u0000WZ+T\u001ekB\t".length();
                  var1 = 14;
                  var7 = -1;
            }

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

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

      return var10000;
   }

   private static String b(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 -> 105;
            case 1 -> 99;
            case 2 -> 21;
            case 3 -> 99;
            case 4 -> 110;
            case 5 -> 14;
            default -> 34;
         });
      }

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