/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.policy.assertion.AssertionStatus
 *  com.l7tech.security.xml.processor.BadSecurityContextException
 *  com.l7tech.util.Functions$Unary
 */
package com.l7tech.server.policy.assertion.xmlsec;

import com.l7tech.policy.assertion.AssertionStatus;
import com.l7tech.security.xml.processor.BadSecurityContextException;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.assertion.AssertionStatusException;
import com.l7tech.server.policy.assertion.xmlsec.ServerSecureConversation;
import com.l7tech.util.Functions;

class v
implements Functions.Unary<Boolean, Throwable> {
    final PolicyEnforcementContext val$context;
    final ServerSecureConversation this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    v(ServerSecureConversation serverSecureConversation, PolicyEnforcementContext policyEnforcementContext) {
        this.this$0 = serverSecureConversation;
        this.val$context = policyEnforcementContext;
    }

    public Boolean call(Throwable throwable) {
        try {
            if (BadSecurityContextException.class.isInstance(throwable)) {
                this.this$0.a(this.val$context, ((BadSecurityContextException)throwable).getWsscNamespace());
                throw new AssertionStatusException(AssertionStatus.AUTH_FAILED);
            }
        }
        catch (AssertionStatusException assertionStatusException) {
            throw v.a(assertionStatusException);
        }
        return false;
    }

    private static AssertionStatusException a(AssertionStatusException assertionStatusException) {
        return assertionStatusException;
    }
}

