package com.l7tech.server.policy.assertion.xmlsec;

import com.l7tech.policy.assertion.AssertionStatus;
import com.l7tech.policy.assertion.xmlsec.SecureConversation;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.assertion.AbstractServerAssertion;
import com.l7tech.server.secureconversation.SecureConversationSession;
import java.io.IOException;

class c extends AbstractServerAssertion<SecureConversation> {
   final SecureConversationSession val$session;

   c(ServerSecureConversation var1, SecureConversation var2, SecureConversationSession var3) {
      super(var2);
      this.val$session = var3;
   }

   @Override
   public AssertionStatus checkRequest(PolicyEnforcementContext param1) throws 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:
      // 00: aload 1
      // 01: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getResponse ()Lcom/l7tech/message/Message; 1
      // 06: invokevirtual com/l7tech/message/Message.isSoap ()Z
      // 09: ifne 1b
      // 0c: aload 0
      // 0d: getstatic com/l7tech/gateway/common/audit/AssertionMessages.SC_UNABLE_TO_ATTACH_SC_TOKEN Lcom/l7tech/gateway/common/audit/Messages$M;
      // 10: invokevirtual com/l7tech/server/policy/assertion/xmlsec/c.logAndAudit (Lcom/l7tech/gateway/common/audit/AuditDetailMessage;)V
      // 13: getstatic com/l7tech/policy/assertion/AssertionStatus.NOT_APPLICABLE Lcom/l7tech/policy/assertion/AssertionStatus;
      // 16: areturn
      // 17: invokestatic com/l7tech/server/policy/assertion/xmlsec/c.a (Ljava/io/IOException;)Ljava/io/IOException;
      // 1a: athrow
      // 1b: aload 1
      // 1c: invokeinterface com/l7tech/server/message/PolicyEnforcementContext.getResponse ()Lcom/l7tech/message/Message; 1
      // 21: invokevirtual com/l7tech/message/Message.getSecurityKnob ()Lcom/l7tech/message/SecurityKnob;
      // 24: invokeinterface com/l7tech/message/SecurityKnob.getOrMakeDecorationRequirements ()Lcom/l7tech/security/xml/decorator/DecorationRequirements; 1
      // 29: astore 2
      // 2a: goto 3e
      // 2d: astore 3
      // 2e: aload 0
      // 2f: getstatic com/l7tech/gateway/common/audit/AssertionMessages.SC_UNABLE_TO_ATTACH_SC_TOKEN Lcom/l7tech/gateway/common/audit/Messages$M;
      // 32: invokevirtual com/l7tech/server/policy/assertion/xmlsec/c.logAndAudit (Lcom/l7tech/gateway/common/audit/AuditDetailMessage;)V
      // 35: new com/l7tech/util/CausedIOException
      // 38: dup
      // 39: aload 3
      // 3a: invokespecial com/l7tech/util/CausedIOException.<init> (Ljava/lang/Throwable;)V
      // 3d: athrow
      // 3e: aload 2
      // 3f: bipush 1
      // 40: invokevirtual com/l7tech/security/xml/decorator/DecorationRequirements.setSignTimestamp (Z)V
      // 43: aload 2
      // 44: aload 0
      // 45: getfield com/l7tech/server/policy/assertion/xmlsec/c.val$session Lcom/l7tech/server/secureconversation/SecureConversationSession;
      // 48: invokevirtual com/l7tech/security/xml/decorator/DecorationRequirements.setSecureConversationSession (Lcom/l7tech/security/xml/decorator/DecorationRequirements$SecureConversationSession;)V
      // 4b: getstatic com/l7tech/policy/assertion/AssertionStatus.NONE Lcom/l7tech/policy/assertion/AssertionStatus;
      // 4e: areturn
      // try (0 -> 8): 17 org/xml/sax/SAXException
      // try (0 -> 9): 9 java/io/IOException
      // try (11 -> 16): 17 org/xml/sax/SAXException
   }

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