package com.l7tech.server.security;

import com.l7tech.common.io.CertUtils;
import com.l7tech.gateway.common.audit.AssertionMessages;
import com.l7tech.gateway.common.audit.Audit;
import com.l7tech.gateway.common.audit.Messages.M;
import com.l7tech.policy.variable.NoSuchVariableException;
import com.l7tech.security.cert.TrustedCert;
import com.l7tech.security.xml.SecurityTokenResolver;
import com.l7tech.security.xml.XmlElementVerifierConfig;
import com.l7tech.security.xml.KeyInfoElement.UnsupportedKeyInfoFormatException;
import com.l7tech.server.identity.cert.TrustedCertCache;
import com.l7tech.util.ConfigFactory;
import com.l7tech.util.DomUtils;
import com.l7tech.util.ExceptionUtils;
import com.l7tech.util.HexUtils;
import com.l7tech.util.InvalidDocumentFormatException;
import com.l7tech.util.MissingRequiredElementException;
import com.l7tech.util.SoapConstants;
import com.l7tech.xml.soap.SoapUtil;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.math.BigInteger;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import javax.security.auth.x500.X500Principal;
import org.jaxen.JaxenException;
import org.jaxen.dom.DOMXPath;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.w3c.dom.Element;

public class XmlElementVerifier {
   static final String a;
   public static boolean CERT_PARSE_BC_FALLBACK;
   private final XmlElementVerifierConfig b;
   private final SecurityTokenResolver c;
   private final TrustedCertCache d;
   private final Audit e;
   private final Logger f;
   private final X509Certificate g;
   private static final DOMXPath h;
   private static final String[] i;

   public XmlElementVerifier(XmlElementVerifierConfig var1, SecurityTokenResolver var2, TrustedCertCache var3, Audit var4, Logger var5) throws CertificateException {
      this.b = var1;
      this.c = var2;
      this.d = var3;
      this.e = var4;
      this.f = var5;
      this.g = this.a();
   }

   public List<Object[]> verifySignature(@NotNull Element param1, @NotNull Map<String, Element> param2, @Nullable Map<String, Object> param3) throws Exception {
      // $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: ifnonnull 00f
      // 004: bipush 0
      // 005: invokestatic com/l7tech/server/security/XmlElementVerifier.a (I)V
      // 008: goto 00f
      // 00b: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 00e: athrow
      // 00f: aload 2
      // 010: ifnonnull 01e
      // 013: bipush 1
      // 014: invokestatic com/l7tech/server/security/XmlElementVerifier.a (I)V
      // 017: goto 01e
      // 01a: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 01d: athrow
      // 01e: aload 1
      // 01f: invokestatic com/l7tech/security/xml/DsigUtil.searchForKeyInfo (Lorg/w3c/dom/Element;)Lorg/w3c/dom/Element;
      // 022: astore 4
      // 024: aload 0
      // 025: getfield com/l7tech/server/security/XmlElementVerifier.g Ljava/security/cert/X509Certificate;
      // 028: ifnull 062
      // 02b: aload 0
      // 02c: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 02f: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.isIgnoreKeyInfo ()Z
      // 032: ifne 059
      // 035: goto 03c
      // 038: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 03b: athrow
      // 03c: aload 4
      // 03e: ifnull 059
      // 041: goto 048
      // 044: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 047: athrow
      // 048: aload 0
      // 049: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 04c: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.getXAdESEnabled ()Z
      // 04f: ifeq 062
      // 052: goto 059
      // 055: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 058: athrow
      // 059: aload 0
      // 05a: getfield com/l7tech/server/security/XmlElementVerifier.g Ljava/security/cert/X509Certificate;
      // 05d: astore 5
      // 05f: goto 0d2
      // 062: aload 0
      // 063: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 066: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.getVerifyCertificateVariableName ()Ljava/lang/String;
      // 069: ifnull 0af
      // 06c: aload 0
      // 06d: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 070: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.isIgnoreKeyInfo ()Z
      // 073: ifne 09a
      // 076: goto 07d
      // 079: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 07c: athrow
      // 07d: aload 4
      // 07f: ifnull 09a
      // 082: goto 089
      // 085: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 088: athrow
      // 089: aload 0
      // 08a: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 08d: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.getXAdESEnabled ()Z
      // 090: ifeq 0af
      // 093: goto 09a
      // 096: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 099: athrow
      // 09a: aload 3
      // 09b: ifnull 0af
      // 09e: goto 0a5
      // 0a1: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0a4: athrow
      // 0a5: aload 0
      // 0a6: aload 3
      // 0a7: invokevirtual com/l7tech/server/security/XmlElementVerifier.a (Ljava/util/Map;)Ljava/security/cert/X509Certificate;
      // 0aa: astore 5
      // 0ac: goto 0d2
      // 0af: aload 4
      // 0b1: ifnonnull 0c6
      // 0b4: new com/l7tech/util/InvalidDocumentFormatException
      // 0b7: dup
      // 0b8: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 0bb: bipush 32
      // 0bd: aaload
      // 0be: invokespecial com/l7tech/util/InvalidDocumentFormatException.<init> (Ljava/lang/String;)V
      // 0c1: athrow
      // 0c2: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0c5: athrow
      // 0c6: aload 0
      // 0c7: aload 4
      // 0c9: aload 0
      // 0ca: getfield com/l7tech/server/security/XmlElementVerifier.c Lcom/l7tech/security/xml/SecurityTokenResolver;
      // 0cd: invokevirtual com/l7tech/server/security/XmlElementVerifier.a (Lorg/w3c/dom/Element;Lcom/l7tech/security/xml/SecurityTokenResolver;)Ljava/security/cert/X509Certificate;
      // 0d0: astore 5
      // 0d2: aload 5
      // 0d4: ifnonnull 0e9
      // 0d7: new java/security/SignatureException
      // 0da: dup
      // 0db: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 0de: bipush 27
      // 0e0: aaload
      // 0e1: invokespecial java/security/SignatureException.<init> (Ljava/lang/String;)V
      // 0e4: athrow
      // 0e5: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0e8: athrow
      // 0e9: getstatic com/l7tech/security/cert/KeyUsageActivity.verifyXml Lcom/l7tech/security/cert/KeyUsageActivity;
      // 0ec: aload 5
      // 0ee: invokestatic com/l7tech/security/cert/KeyUsageChecker.requireActivity (Lcom/l7tech/security/cert/KeyUsageActivity;Ljava/security/cert/X509Certificate;)V
      // 0f1: aload 5
      // 0f3: invokevirtual java/security/cert/X509Certificate.checkValidity ()V
      // 0f6: new com/l7tech/security/xml/SignatureValidityContext$Builder
      // 0f9: dup
      // 0fa: aload 1
      // 0fb: aload 5
      // 0fd: aload 0
      // 0fe: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 101: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.getXAdESEnabled ()Z
      // 104: invokespecial com/l7tech/security/xml/SignatureValidityContext$Builder.<init> (Lorg/w3c/dom/Element;Ljava/security/cert/X509Certificate;Z)V
      // 107: aload 2
      // 108: invokevirtual com/l7tech/security/xml/SignatureValidityContext$Builder.usesElementIdMapping (Ljava/util/Map;)Lcom/l7tech/security/xml/SignatureValidityContext$Builder;
      // 10b: invokevirtual com/l7tech/security/xml/SignatureValidityContext$Builder.build ()Lcom/l7tech/security/xml/SignatureValidityContext;
      // 10e: invokevirtual com/l7tech/security/xml/SignatureValidityContext.verify ()Lcom/l7tech/security/xml/DsigValidity;
      // 111: astore 6
      // 113: aload 6
      // 115: invokevirtual com/l7tech/security/xml/DsigValidity.getCoreValidity ()Ljava/lang/Boolean;
      // 118: invokevirtual java/lang/Boolean.booleanValue ()Z
      // 11b: ifne 12f
      // 11e: new com/l7tech/xml/InvalidDocumentSignatureException
      // 121: dup
      // 122: aload 6
      // 124: invokevirtual com/l7tech/security/xml/DsigValidity.getInvalidSignatureMessage ()Ljava/lang/String;
      // 127: invokespecial com/l7tech/xml/InvalidDocumentSignatureException.<init> (Ljava/lang/String;)V
      // 12a: athrow
      // 12b: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 12e: athrow
      // 12f: aload 1
      // 130: aload 1
      // 131: invokeinterface org/w3c/dom/Element.getNamespaceURI ()Ljava/lang/String; 1
      // 136: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 139: astore 19
      // 13b: aload 19
      // 13d: bipush 6
      // 13f: aaload
      // 140: invokestatic com/l7tech/util/DomUtils.findOnlyOneChildElementByName (Lorg/w3c/dom/Element;Ljava/lang/String;Ljava/lang/String;)Lorg/w3c/dom/Element;
      // 143: astore 7
      // 145: aload 7
      // 147: ifnonnull 15b
      // 14a: new com/l7tech/util/InvalidDocumentFormatException
      // 14d: dup
      // 14e: aload 19
      // 150: bipush 14
      // 152: aaload
      // 153: invokespecial com/l7tech/util/InvalidDocumentFormatException.<init> (Ljava/lang/String;)V
      // 156: athrow
      // 157: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 15a: athrow
      // 15b: aload 7
      // 15d: invokestatic com/l7tech/common/io/XmlUtil.getTextValue (Lorg/w3c/dom/Element;)Ljava/lang/String;
      // 160: astore 8
      // 162: getstatic com/l7tech/server/security/XmlElementVerifier.h Lorg/jaxen/dom/DOMXPath;
      // 165: aload 1
      // 166: invokevirtual org/jaxen/dom/DOMXPath.selectSingleNode (Ljava/lang/Object;)Ljava/lang/Object;
      // 169: checkcast java/lang/String
      // 16c: astore 9
      // 16e: aload 9
      // 170: ifnull 186
      // 173: aload 9
      // 175: invokevirtual java/lang/String.trim ()Ljava/lang/String;
      // 178: invokevirtual java/lang/String.length ()I
      // 17b: bipush 1
      // 17c: if_icmpge 198
      // 17f: goto 186
      // 182: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 185: athrow
      // 186: new com/l7tech/util/InvalidDocumentFormatException
      // 189: dup
      // 18a: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 18d: bipush 10
      // 18f: aaload
      // 190: invokespecial com/l7tech/util/InvalidDocumentFormatException.<init> (Ljava/lang/String;)V
      // 193: athrow
      // 194: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 197: athrow
      // 198: bipush 1
      // 199: newarray 4
      // 19b: dup
      // 19c: bipush 0
      // 19d: bipush 0
      // 19e: bastore
      // 19f: astore 10
      // 1a1: bipush 1
      // 1a2: anewarray 485
      // 1a5: dup
      // 1a6: bipush 0
      // 1a7: aconst_null
      // 1a8: aastore
      // 1a9: astore 11
      // 1ab: aload 6
      // 1ad: invokevirtual com/l7tech/security/xml/DsigValidity.getReferences ()Ljava/util/List;
      // 1b0: invokeinterface java/util/List.iterator ()Ljava/util/Iterator; 1
      // 1b5: astore 12
      // 1b7: aload 12
      // 1b9: invokeinterface java/util/Iterator.hasNext ()Z 1
      // 1be: ifeq 20a
      // 1c1: aload 12
      // 1c3: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1
      // 1c8: checkcast javax/xml/crypto/dsig/Reference
      // 1cb: astore 13
      // 1cd: aload 13
      // 1cf: invokeinterface javax/xml/crypto/dsig/Reference.getDigestMethod ()Ljavax/xml/crypto/dsig/DigestMethod; 1
      // 1d4: invokeinterface javax/xml/crypto/dsig/DigestMethod.getAlgorithm ()Ljava/lang/String; 1
      // 1d9: astore 14
      // 1db: aload 11
      // 1dd: bipush 0
      // 1de: aaload
      // 1df: ifnull 201
      // 1e2: aload 11
      // 1e4: bipush 0
      // 1e5: aaload
      // 1e6: aload 14
      // 1e8: invokevirtual java/lang/String.equals (Ljava/lang/Object;)Z
      // 1eb: ifne 201
      // 1ee: goto 1f5
      // 1f1: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 1f4: athrow
      // 1f5: aload 10
      // 1f7: bipush 0
      // 1f8: bipush 1
      // 1f9: bastore
      // 1fa: goto 201
      // 1fd: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 200: athrow
      // 201: aload 11
      // 203: bipush 0
      // 204: aload 14
      // 206: aastore
      // 207: goto 1b7
      // 20a: aload 10
      // 20c: bipush 0
      // 20d: baload
      // 20e: ifeq 21e
      // 211: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 214: bipush 34
      // 216: aaload
      // 217: goto 222
      // 21a: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 21d: athrow
      // 21e: aload 11
      // 220: bipush 0
      // 221: aaload
      // 222: astore 12
      // 224: new java/util/ArrayList
      // 227: dup
      // 228: invokespecial java/util/ArrayList.<init> ()V
      // 22b: astore 13
      // 22d: aload 6
      // 22f: invokevirtual com/l7tech/security/xml/DsigValidity.getNumberOfReferences ()I
      // 232: istore 14
      // 234: bipush 0
      // 235: istore 15
      // 237: iload 15
      // 239: iload 14
      // 23b: if_icmpge 2ec
      // 23e: aload 6
      // 240: invokevirtual com/l7tech/security/xml/DsigValidity.getReferences ()Ljava/util/List;
      // 243: iload 15
      // 245: invokeinterface java/util/List.get (I)Ljava/lang/Object; 2
      // 24a: checkcast javax/xml/crypto/dsig/Reference
      // 24d: invokeinterface javax/xml/crypto/dsig/Reference.getURI ()Ljava/lang/String; 1
      // 252: astore 16
      // 254: aload 16
      // 256: ifnull 283
      // 259: aload 16
      // 25b: invokevirtual java/lang/String.length ()I
      // 25e: bipush 1
      // 25f: if_icmple 283
      // 262: goto 269
      // 265: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 268: athrow
      // 269: aload 16
      // 26b: bipush 0
      // 26c: invokevirtual java/lang/String.charAt (I)C
      // 26f: bipush 35
      // 271: if_icmpne 283
      // 274: goto 27b
      // 277: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 27a: athrow
      // 27b: aload 16
      // 27d: bipush 1
      // 27e: invokevirtual java/lang/String.substring (I)Ljava/lang/String;
      // 281: astore 16
      // 283: aload 2
      // 284: aload 16
      // 286: invokeinterface java/util/Map.get (Ljava/lang/Object;)Ljava/lang/Object; 2
      // 28b: checkcast org/w3c/dom/Element
      // 28e: astore 17
      // 290: aload 17
      // 292: ifnonnull 2b8
      // 295: aload 16
      // 297: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 29a: bipush 28
      // 29c: aaload
      // 29d: swap
      // 29e: 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" ]
      // 2a3: astore 18
      // 2a5: aload 0
      // 2a6: getfield com/l7tech/server/security/XmlElementVerifier.f Ljava/util/logging/Logger;
      // 2a9: aload 18
      // 2ab: invokevirtual java/util/logging/Logger.warning (Ljava/lang/String;)V
      // 2ae: new com/l7tech/util/InvalidDocumentFormatException
      // 2b1: dup
      // 2b2: aload 18
      // 2b4: invokespecial com/l7tech/util/InvalidDocumentFormatException.<init> (Ljava/lang/String;)V
      // 2b7: athrow
      // 2b8: bipush 6
      // 2ba: anewarray 9
      // 2bd: dup
      // 2be: bipush 0
      // 2bf: aload 17
      // 2c1: aastore
      // 2c2: dup
      // 2c3: bipush 1
      // 2c4: aload 5
      // 2c6: aastore
      // 2c7: dup
      // 2c8: bipush 2
      // 2c9: aload 9
      // 2cb: aastore
      // 2cc: dup
      // 2cd: bipush 3
      // 2ce: aload 12
      // 2d0: aastore
      // 2d1: dup
      // 2d2: bipush 4
      // 2d3: aload 8
      // 2d5: aastore
      // 2d6: dup
      // 2d7: bipush 5
      // 2d8: aload 1
      // 2d9: aastore
      // 2da: astore 18
      // 2dc: aload 13
      // 2de: aload 18
      // 2e0: invokeinterface java/util/List.add (Ljava/lang/Object;)Z 2
      // 2e5: pop
      // 2e6: iinc 15 1
      // 2e9: goto 237
      // 2ec: aload 13
      // 2ee: areturn
      // try (0 -> 4): 5 java/lang/Exception
      // try (7 -> 11): 12 java/lang/Exception
      // try (17 -> 24): 25 java/lang/Exception
      // try (20 -> 29): 30 java/lang/Exception
      // try (27 -> 36): 37 java/lang/Exception
      // try (43 -> 51): 52 java/lang/Exception
      // try (47 -> 56): 57 java/lang/Exception
      // try (54 -> 63): 64 java/lang/Exception
      // try (59 -> 68): 69 java/lang/Exception
      // try (76 -> 85): 85 java/lang/Exception
      // try (93 -> 102): 102 java/lang/Exception
      // try (122 -> 132): 132 java/lang/Exception
      // try (144 -> 153): 153 java/lang/Exception
      // try (163 -> 170): 171 java/lang/Exception
      // try (165 -> 180): 180 java/lang/Exception
      // try (211 -> 221): 222 java/lang/Exception
      // try (215 -> 228): 229 java/lang/Exception
      // try (236 -> 244): 244 java/lang/Exception
      // try (269 -> 275): 276 java/lang/Exception
      // try (271 -> 283): 284 java/lang/Exception
   }

   private X509Certificate a(Map<String, Object> var1) throws NoSuchVariableException, IOException, CertificateException {
      String var2 = this.b.getVerifyCertificateVariableName();
      Object var3 = var1.get(var2);

      try {
         if (var3 == null) {
            throw new NoSuchVariableException(var2, i[11]);
         }
      } catch (NoSuchVariableException var5) {
         throw a(var5);
      }

      try {
         if (var3 instanceof X509Certificate) {
            return (X509Certificate)var3;
         }
      } catch (NoSuchVariableException var6) {
         throw a(var6);
      }

      if (var3 instanceof String var4) {
         return CertUtils.decodeFromPEM(var4, false);
      } else {
         throw new NoSuchVariableException(var2, i[18]);
      }
   }

   private X509Certificate a() throws CertificateException {
      // $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: aconst_null
      // 001: astore 1
      // 002: ldc ""
      // 004: astore 2
      // 005: aload 0
      // 006: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 009: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.getVerifyCertificateGoid ()Lcom/l7tech/objectmodel/Goid;
      // 00c: astore 3
      // 00d: aload 0
      // 00e: getfield com/l7tech/server/security/XmlElementVerifier.b Lcom/l7tech/security/xml/XmlElementVerifierConfig;
      // 011: invokevirtual com/l7tech/security/xml/XmlElementVerifierConfig.getVerifyCertificateName ()Ljava/lang/String;
      // 014: astore 4
      // 016: aload 3
      // 017: ifnull 075
      // 01a: getstatic com/l7tech/objectmodel/Goid.DEFAULT_GOID Lcom/l7tech/objectmodel/Goid;
      // 01d: aload 3
      // 01e: invokevirtual com/l7tech/objectmodel/Goid.equals (Ljava/lang/Object;)Z
      // 021: ifne 075
      // 024: goto 02b
      // 027: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 02a: athrow
      // 02b: aload 3
      // 02c: invokestatic java/lang/String.valueOf (Ljava/lang/Object;)Ljava/lang/String;
      // 02f: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 032: astore 10
      // 034: aload 10
      // 036: bipush 1
      // 037: aaload
      // 038: swap
      // 039: 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" ]
      // 03e: astore 2
      // 03f: aload 0
      // 040: getfield com/l7tech/server/security/XmlElementVerifier.d Lcom/l7tech/server/identity/cert/TrustedCertCache;
      // 043: aload 3
      // 044: invokeinterface com/l7tech/server/identity/cert/TrustedCertCache.findByPrimaryKey (Lcom/l7tech/objectmodel/Goid;)Lcom/l7tech/security/cert/TrustedCert; 2
      // 049: astore 5
      // 04b: aload 5
      // 04d: ifnull 059
      // 050: aload 5
      // 052: invokevirtual com/l7tech/security/cert/TrustedCert.getCertificate ()Ljava/security/cert/X509Certificate;
      // 055: astore 1
      // 056: goto 072
      // 059: new java/security/cert/CertificateException
      // 05c: dup
      // 05d: aload 2
      // 05e: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 061: astore 10
      // 063: aload 10
      // 065: bipush 19
      // 067: aaload
      // 068: swap
      // 069: 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" ]
      // 06e: invokespecial java/security/cert/CertificateException.<init> (Ljava/lang/String;)V
      // 071: athrow
      // 072: goto 126
      // 075: aload 4
      // 077: ifnull 126
      // 07a: aload 4
      // 07c: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 07f: astore 10
      // 081: aload 10
      // 083: bipush 33
      // 085: aaload
      // 086: swap
      // 087: 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" ]
      // 08c: astore 2
      // 08d: aload 0
      // 08e: getfield com/l7tech/server/security/XmlElementVerifier.d Lcom/l7tech/server/identity/cert/TrustedCertCache;
      // 091: aload 4
      // 093: invokeinterface com/l7tech/server/identity/cert/TrustedCertCache.findByName (Ljava/lang/String;)Ljava/util/Collection; 2
      // 098: astore 5
      // 09a: aconst_null
      // 09b: astore 6
      // 09d: aconst_null
      // 09e: astore 7
      // 0a0: aload 5
      // 0a2: invokeinterface java/util/Collection.iterator ()Ljava/util/Iterator; 1
      // 0a7: astore 8
      // 0a9: aload 8
      // 0ab: invokeinterface java/util/Iterator.hasNext ()Z 1
      // 0b0: ifeq 0e1
      // 0b3: aload 8
      // 0b5: invokeinterface java/util/Iterator.next ()Ljava/lang/Object; 1
      // 0ba: checkcast com/l7tech/security/cert/TrustedCert
      // 0bd: astore 9
      // 0bf: aload 0
      // 0c0: aload 9
      // 0c2: invokevirtual com/l7tech/server/security/XmlElementVerifier.a (Lcom/l7tech/security/cert/TrustedCert;)Z
      // 0c5: ifne 0d2
      // 0c8: aload 9
      // 0ca: invokevirtual com/l7tech/security/cert/TrustedCert.getCertificate ()Ljava/security/cert/X509Certificate;
      // 0cd: astore 6
      // 0cf: goto 0e1
      // 0d2: aload 7
      // 0d4: ifnonnull 0de
      // 0d7: aload 9
      // 0d9: invokevirtual com/l7tech/security/cert/TrustedCert.getCertificate ()Ljava/security/cert/X509Certificate;
      // 0dc: astore 7
      // 0de: goto 0a9
      // 0e1: aload 6
      // 0e3: ifnonnull 0f2
      // 0e6: aload 7
      // 0e8: ifnull 10d
      // 0eb: goto 0f2
      // 0ee: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0f1: athrow
      // 0f2: aload 6
      // 0f4: ifnull 107
      // 0f7: goto 0fe
      // 0fa: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 0fd: athrow
      // 0fe: aload 6
      // 100: goto 109
      // 103: invokestatic com/l7tech/server/security/XmlElementVerifier.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 106: athrow
      // 107: aload 7
      // 109: astore 1
      // 10a: goto 126
      // 10d: new java/security/cert/CertificateException
      // 110: dup
      // 111: aload 2
      // 112: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 115: astore 10
      // 117: aload 10
      // 119: bipush 24
      // 11b: aaload
      // 11c: swap
      // 11d: 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" ]
      // 122: invokespecial java/security/cert/CertificateException.<init> (Ljava/lang/String;)V
      // 125: athrow
      // 126: goto 14e
      // 129: astore 3
      // 12a: new java/security/cert/CertificateException
      // 12d: dup
      // 12e: aload 2
      // 12f: aload 3
      // 130: invokestatic com/l7tech/util/ExceptionUtils.getMessage (Ljava/lang/Throwable;)Ljava/lang/String;
      // 133: getstatic com/l7tech/server/security/XmlElementVerifier.i [Ljava/lang/String;
      // 136: astore 10
      // 138: aload 10
      // 13a: bipush 2
      // 13b: aaload
      // 13c: dup_x2
      // 13d: pop
      // 13e: aload 10
      // 140: bipush 21
      // 142: aaload
      // 143: swap
      // 144: invokedynamic makeConcatWithConstants (Ljava/lang/String;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\u0001" ]
      // 149: aload 3
      // 14a: invokespecial java/security/cert/CertificateException.<init> (Ljava/lang/String;Ljava/lang/Throwable;)V
      // 14d: athrow
      // 14e: aload 1
      // 14f: areturn
      // try (106 -> 113): 113 com/l7tech/objectmodel/FindException
      // try (101 -> 108): 109 com/l7tech/objectmodel/FindException
      // try (99 -> 103): 104 com/l7tech/objectmodel/FindException
      // try (12 -> 18): 19 com/l7tech/objectmodel/FindException
      // try (4 -> 130): 131 com/l7tech/objectmodel/FindException
   }

   private boolean a(TrustedCert var1) {
      boolean var2 = true;

      try {
         var2 = var1.isExpiredCert();
      } catch (CertificateException var4) {
         this.e.logAndAudit(AssertionMessages.WSSECURITY_RECIP_CERT_EXP, new String[]{var1.getName() + i[39] + var1.getGoid() + ")"}, var4);
      }

      return var2;
   }

   private X509Certificate a(Element var1, SecurityTokenResolver var2) throws CertificateException {
      try {
         String[] var10 = i;
         Element var3 = DomUtils.findOnlyOneChildElementByName(var1, SoapConstants.DIGSIG_URI, var10[4]);

         try {
            if (var3 == null) {
               throw new UnsupportedKeyInfoFormatException(var10[31]);
            }
         } catch (UnsupportedKeyInfoFormatException var5) {
            throw a(var5);
         }

         return b(var3, var2);
      } catch (UnsupportedKeyInfoFormatException var6) {
         Audit var11 = this.e;
         M var12 = AssertionMessages.EXCEPTION_INFO_WITH_MORE_INFO;
         String[] var13 = new String[1];
         String var14 = ExceptionUtils.getMessage(var6);
         String[] var9 = i;
         var13[0] = var9[7] + var14;
         var11.logAndAudit(var12, var13, ExceptionUtils.getDebugException(var6));
         return null;
      } catch (InvalidDocumentFormatException var7) {
         Audit var10000 = this.e;
         M var10001 = AssertionMessages.EXCEPTION_INFO_WITH_MORE_INFO;
         String[] var10002 = new String[1];
         String var10005 = ExceptionUtils.getMessage(var7);
         String[] var4 = i;
         var10002[0] = var4[38] + var10005;
         var10000.logAndAudit(var10001, var10002, ExceptionUtils.getDebugException(var7));
         return null;
      } catch (IOException var8) {
         this.e
            .logAndAudit(
               AssertionMessages.EXCEPTION_INFO_WITH_MORE_INFO, new String[]{i[8] + ExceptionUtils.getMessage(var8)}, ExceptionUtils.getDebugException(var8)
            );
         return null;
      }
   }

   private static X509Certificate b(Element var0, SecurityTokenResolver var1) throws CertificateException, InvalidDocumentFormatException, IOException {
      String[] var10 = i;
      Element var2 = DomUtils.findOnlyOneChildElementByName(var0, SoapConstants.DIGSIG_URI, var10[3]);
      Element var3 = DomUtils.findOnlyOneChildElementByName(var0, SoapConstants.DIGSIG_URI, var10[12]);
      Element var4 = DomUtils.findOnlyOneChildElementByName(var0, SoapConstants.DIGSIG_URI, var10[17]);
      Element var5 = DomUtils.findOnlyOneChildElementByName(var0, SoapConstants.DIGSIG_URI, var10[30]);
      if (var2 != null) {
         String var18 = DomUtils.getTextValue(var2);
         byte[] var20 = CertUtils.decodeCertBytesFromPEM(var18, false);

         try {
            return CertUtils.decodeCert(var20);
         } catch (CertificateException var12) {
            CertificateException var21 = var12;

            try {
               if (!CERT_PARSE_BC_FALLBACK) {
                  throw var21;
               }
            } catch (CertificateException var11) {
               throw a(var11);
            }

            var10 = i;
            return (X509Certificate)CertificateFactory.getInstance(var10[22]).generateCertificate(new ByteArrayInputStream(var20));
         }
      } else {
         if (var3 != null) {
            String var17 = DomUtils.getTextValue(var3);
            String var19 = HexUtils.encodeBase64(HexUtils.decodeBase64(var17, true), true);
            return var1.lookupBySki(var19);
         }

         if (var4 != null) {
            var10 = i;
            Element var16 = DomUtils.findExactlyOneChildElementByName(var4, SoapConstants.DIGSIG_URI, var10[20]);
            Element var7 = DomUtils.findExactlyOneChildElementByName(var4, SoapConstants.DIGSIG_URI, var10[26]);
            String var8 = DomUtils.getTextValue(var16);

            try {
               if (var8.length() == 0) {
                  throw new MissingRequiredElementException(var10[23]);
               }
            } catch (CertificateException var14) {
               throw a(var14);
            }

            String var9 = DomUtils.getTextValue(var7);

            try {
               if (var9.length() == 0) {
                  throw new MissingRequiredElementException(i[5]);
               }
            } catch (CertificateException var13) {
               throw a(var13);
            }

            return var1.lookupByIssuerAndSerial(new X500Principal(var8), new BigInteger(var9));
         } else if (var5 != null) {
            String var6 = DomUtils.getTextValue(var5);

            try {
               if (var6.length() == 0) {
                  throw new MissingRequiredElementException(i[29]);
               }
            } catch (CertificateException var15) {
               throw a(var15);
            }

            return var1.lookupByKeyName(var6);
         } else {
            throw new UnsupportedKeyInfoFormatException(i[37]);
         }
      }
   }

   static {
      String[] var5 = new String[41];
      int var3 = 0;
      String var2 = "i/\u0006,N4/\u007f\u0001\u001a\bO\u0004e'Cb(I1\u0011.Yz,d&\raM35h*\r&\u000b.)y0\u0017$Oz8i1\u0017(M38m7\u0006{\u000b\u000fTvSxh?)x*\u0005(H;/i\bTvSxo;/m\u001aTvSxx?)e\"\u000f\u000f^79i1C6J){i.\u00135R\u000e_*\u0004/J..~&5 G/>\u001dY-\u0011$H5<b*\u0019$Oz\u0010i:*/M5{j,\u0011,J.a,\u0019Y-\u0002#G?{x,C1J((ic($R\u00135j,Ya-o,\u000enGm/i \u000bnX?)z&\u0011nX?8y1\n5Ru\u0003a/&-N7>b75$Y3=e&\u0011/Y-\u0002#G?{x,C$S.)m \u0017ax3<b\"\u00174Y?\u0016i7\u000b.Oz\u001a`$\f3B.3ac6\u0013b%Z&\u0011(M#{o&\u00115B<2o\"\u0017$\u000b,:~*\u0002#G?{b,\u0017aM5.b'\u0007TvSxx\u0011\u0012\n\u007f*\u0004\u0004G?6i-\u00171Z\"\u000f(Oz?\u007fy0(L4:x6\u0011$\u000b94b7\u0002(E??,-\faO)a_*\u0004/J..~&5 G/>9o,\u000eoGm/i \u000boN\"/i1\r Gt:\u007f0\u00063_34b0M9F6(i M\"N(/\\\"\u00112N\u00188J\"\u000f-I;8g\u000fz&\u0011(M#\be$\r _/)i\u0010TvSxb)(y&\u0011\u0012N(2m/WZ&\u0011(M#{o&\u00115B<2o\"\u0017$\u000b,:~*\u0002#G?{{\"\u0010aM5.b'C#^.{{\"\u0010aE5/,,\u0005a_#+ic;t\u001bc\u0018i1\u0017(M38m7\u0006aD({\\\u0006.ax.)e-\u0004#O,\u0016-Oz5c7C'B4?,7\u00114X.>hc\u0000$Y.2j*\u0000 _?{\u000eTvSxb)(y&\u0011\u000fJ7>\u00026c\u0005TmVq\u0012\u0018TvSxb)(y&\u0011\u000fJ7>,4\u00022\u000b?6|7\u001a#O,\u0016-Oz5c7C'B4?,7\u00114X.>hc\u0000$Y.2j*\u0000 _?{>M1\u00044F?5xc\u0005.Yz\u001bB,\u0017\u000f^67,3\u00023J7>x&\u0011a\f\u007f(+c\f'\u000b\u007f(\"f\u0010aF/(xc\r._z9ic\r4G6\u0010TvSxx?)e\"\u000f\u000f^79i1'Y-\u0002#G?{x,C%N.>~.\n/Nz(e$\r(E={o&\u00115B<2o\"\u0017$bI/\u0006,N4/, \f7N(>hc\u00018\u000b)2k-\u00025^(>, \u0002/E5/,!\u0006aM5.b'C(Ez4~*\u0004(E;7,'\f\"^7>b7C/D({e-C1Y58i0\u0010$Oz?c \u0016,N4/\"c6\u0013b`{\u0019TvSxx/9f&\u00005e;6ic\u0014 Xz>a3\u00178\u000fTvSxx/9f&\u00005e;6iCG&\u001a\bE<4,'\n%\u000b44xc\u0000.E.:e-C E#{~&\u0000.L42v&\u0007aH?)x*\u0005(H;/ic\u0011$M?)i-\u0000$\u000b<4~.\u00025.G&\u001a\bE<4,&\u000f$F?5xc\r._z=c6\r%\u000b35,\u0010\n&E;/y1\u0006an6>a&\r5\u0005b\"\u000e$\u000b2d7\u00171\u0011ut`\"\u001a$Ym/i \u000boH56#'\n&N)/A&\u0017)D>\u000e~*\u0010nX;,A6\u000f5B*7i\u0002h03\u007f7\u0011(E=sh0Y\u0012B=5i'*/M5th0Y\u0012B=5m7\u00163N\u0017>x+\f%\u0004\u001a\u001a`$\f3B.3aj.G&\u001a\bE<4,\u001bVq\u0012\u001e:x\"C6J){b,\u0017aB4{mc\u00104[*4~7\u0006%\u000b<4~.\u00025\u0019Y-\u0002#G?{x,C1J((ic($R\u00135j,Ya";
      int var4 = "i/\u0006,N4/\u007f\u0001\u001a\bO\u0004e'Cb(I1\u0011.Yz,d&\raM35h*\r&\u000b.)y0\u0017$Oz8i1\u0017(M38m7\u0006{\u000b\u000fTvSxh?)x*\u0005(H;/i\bTvSxo;/m\u001aTvSxx?)e\"\u000f\u000f^79i1C6J){i.\u00135R\u000e_*\u0004/J..~&5 G/>\u001dY-\u0011$H5<b*\u0019$Oz\u0010i:*/M5{j,\u0011,J.a,\u0019Y-\u0002#G?{x,C1J((ic($R\u00135j,Ya-o,\u000enGm/i \u000bnX?)z&\u0011nX?8y1\n5Ru\u0003a/&-N7>b75$Y3=e&\u0011/Y-\u0002#G?{x,C$S.)m \u0017ax3<b\"\u00174Y?\u0016i7\u000b.Oz\u001a`$\f3B.3ac6\u0013b%Z&\u0011(M#{o&\u00115B<2o\"\u0017$\u000b,:~*\u0002#G?{b,\u0017aM5.b'\u0007TvSxx\u0011\u0012\n\u007f*\u0004\u0004G?6i-\u00171Z\"\u000f(Oz?\u007fy0(L4:x6\u0011$\u000b94b7\u0002(E??,-\faO)a_*\u0004/J..~&5 G/>9o,\u000eoGm/i \u000boN\"/i1\r Gt:\u007f0\u00063_34b0M9F6(i M\"N(/\\\"\u00112N\u00188J\"\u000f-I;8g\u000fz&\u0011(M#\be$\r _/)i\u0010TvSxb)(y&\u0011\u0012N(2m/WZ&\u0011(M#{o&\u00115B<2o\"\u0017$\u000b,:~*\u0002#G?{{\"\u0010aM5.b'C#^.{{\"\u0010aE5/,,\u0005a_#+ic;t\u001bc\u0018i1\u0017(M38m7\u0006aD({\\\u0006.ax.)e-\u0004#O,\u0016-Oz5c7C'B4?,7\u00114X.>hc\u0000$Y.2j*\u0000 _?{\u000eTvSxb)(y&\u0011\u000fJ7>\u00026c\u0005TmVq\u0012\u0018TvSxb)(y&\u0011\u000fJ7>,4\u00022\u000b?6|7\u001a#O,\u0016-Oz5c7C'B4?,7\u00114X.>hc\u0000$Y.2j*\u0000 _?{>M1\u00044F?5xc\u0005.Yz\u001bB,\u0017\u000f^67,3\u00023J7>x&\u0011a\f\u007f(+c\f'\u000b\u007f(\"f\u0010aF/(xc\r._z9ic\r4G6\u0010TvSxx?)e\"\u000f\u000f^79i1'Y-\u0002#G?{x,C%N.>~.\n/Nz(e$\r(E={o&\u00115B<2o\"\u0017$bI/\u0006,N4/, \f7N(>hc\u00018\u000b)2k-\u00025^(>, \u0002/E5/,!\u0006aM5.b'C(Ez4~*\u0004(E;7,'\f\"^7>b7C/D({e-C1Y58i0\u0010$Oz?c \u0016,N4/\"c6\u0013b`{\u0019TvSxx/9f&\u00005e;6ic\u0014 Xz>a3\u00178\u000fTvSxx/9f&\u00005e;6iCG&\u001a\bE<4,'\n%\u000b44xc\u0000.E.:e-C E#{~&\u0000.L42v&\u0007aH?)x*\u0005(H;/ic\u0011$M?)i-\u0000$\u000b<4~.\u00025.G&\u001a\bE<4,&\u000f$F?5xc\r._z=c6\r%\u000b35,\u0010\n&E;/y1\u0006an6>a&\r5\u0005b\"\u000e$\u000b2d7\u00171\u0011ut`\"\u001a$Ym/i \u000boH56#'\n&N)/A&\u0017)D>\u000e~*\u0010nX;,A6\u000f5B*7i\u0002h03\u007f7\u0011(E=sh0Y\u0012B=5i'*/M5th0Y\u0012B=5m7\u00163N\u0017>x+\f%\u0004\u001a\u001a`$\f3B.3aj.G&\u001a\bE<4,\u001bVq\u0012\u001e:x\"C6J){b,\u0017aB4{mc\u00104[*4~7\u0006%\u000b<4~.\u00025\u0019Y-\u0002#G?{x,C1J((ic($R\u00135j,Ya"
         .length();
      char var1 = '\f';
      int var9 = -1;

      label33:
      while (true) {
         byte var10000 = 122;
         String var10001 = var2.substring(++var9, var9 + var1);
         byte var10002 = -1;

         while (true) {
            String var11 = a(var10000, a(var10001));
            switch (var10002) {
               case 0:
                  var5[var3++] = var11;
                  if ((var9 += var1) >= var4) {
                     i = var5;
                     a = i[40];
                     String[] var10 = i;
                     CERT_PARSE_BC_FALLBACK = ConfigFactory.getBooleanProperty(var10[15], false);

                     try {
                        h = new DOMXPath(var10[36]);
                        h.addNamespace(var10[35], SoapUtil.DIGSIG_URI);
                        return;
                     } catch (JaxenException var7) {
                        throw new RuntimeException(var7);
                     }
                  }

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

                  var2 = "\u0019^u9Z\u0019;ZrX\u001a\\\u0015>Z{\u0017\u001a\\\u00048\u0015rA\u000fJ\u00053\u0006j\u0006\u0001W\u0005x\fs\u0003\u001d\\\u0015x\u0017{\u001d\u001ai\u0017$\u0007{-\r\u007f\u0017:\u0018|\u000e\rR";
                  var4 = "\u0019^u9Z\u0019;ZrX\u001a\\\u0015>Z{\u0017\u001a\\\u00048\u0015rA\u000fJ\u00053\u0006j\u0006\u0001W\u0005x\fs\u0003\u001d\\\u0015x\u0017{\u001d\u001ai\u0017$\u0007{-\r\u007f\u0017:\u0018|\u000e\rR"
                     .length();
                  var1 = 3;
                  var9 = -1;
            }

            var10000 = 79;
            var10001 = var2.substring(++var9, var9 + var1);
            var10002 = 0;
         }
      }
   }

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

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

      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 -> 118;
            case 1 -> 57;
            case 2 -> 25;
            case 3 -> 59;
            case 4 -> 81;
            case 5 -> 32;
            default -> 33;
         });
      }

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