/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.kerberos.KerberosServiceTicket
 *  com.l7tech.policy.assertion.Assertion
 *  com.l7tech.policy.assertion.AssertionStatus
 *  com.l7tech.policy.assertion.PolicyAssertionException
 *  com.l7tech.security.xml.decorator.DecorationRequirements
 */
package com.l7tech.server.policy.assertion.xmlsec;

import com.l7tech.kerberos.KerberosServiceTicket;
import com.l7tech.policy.assertion.Assertion;
import com.l7tech.policy.assertion.AssertionStatus;
import com.l7tech.policy.assertion.PolicyAssertionException;
import com.l7tech.security.xml.decorator.DecorationRequirements;
import com.l7tech.server.message.PolicyEnforcementContext;
import com.l7tech.server.policy.assertion.AbstractServerAssertion;
import com.l7tech.server.policy.assertion.xmlsec.ServerRequestWssKerberos;
import java.io.IOException;

class b
extends AbstractServerAssertion {
    final KerberosServiceTicket val$kerberosServiceTicket;

    b(ServerRequestWssKerberos serverRequestWssKerberos, Assertion assertion, KerberosServiceTicket kerberosServiceTicket) {
        this.val$kerberosServiceTicket = kerberosServiceTicket;
        super(assertion);
    }

    @Override
    public AssertionStatus checkRequest(PolicyEnforcementContext policyEnforcementContext) throws IOException, PolicyAssertionException {
        DecorationRequirements decorationRequirements = policyEnforcementContext.getResponse().getSecurityKnob().getAlternateDecorationRequirements(null);
        decorationRequirements.setKerberosTicket(this.val$kerberosServiceTicket);
        return AssertionStatus.NONE;
    }
}

