// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.oer.its.etsi102941;

import java.math.BigInteger;
import org.bouncycastle.asn1.ASN1Enumerated;

public class AuthorizationResponseCode extends ASN1Enumerated
{
    public static final AuthorizationResponseCode ok;
    public static final AuthorizationResponseCode its_aa_cantparse;
    public static final AuthorizationResponseCode its_aa_badcontenttype;
    public static final AuthorizationResponseCode its_aa_imnottherecipient;
    public static final AuthorizationResponseCode its_aa_unknownencryptionalgorithm;
    public static final AuthorizationResponseCode its_aa_decryptionfailed;
    public static final AuthorizationResponseCode its_aa_keysdontmatch;
    public static final AuthorizationResponseCode its_aa_incompleterequest;
    public static final AuthorizationResponseCode its_aa_invalidencryptionkey;
    public static final AuthorizationResponseCode its_aa_outofsyncrequest;
    public static final AuthorizationResponseCode its_aa_unknownea;
    public static final AuthorizationResponseCode its_aa_invalidea;
    public static final AuthorizationResponseCode its_aa_deniedpermissions;
    public static final AuthorizationResponseCode aa_ea_cantreachea;
    public static final AuthorizationResponseCode ea_aa_cantparse;
    public static final AuthorizationResponseCode ea_aa_badcontenttype;
    public static final AuthorizationResponseCode ea_aa_imnottherecipient;
    public static final AuthorizationResponseCode ea_aa_unknownencryptionalgorithm;
    public static final AuthorizationResponseCode ea_aa_decryptionfailed;
    public static final AuthorizationResponseCode invalidaa;
    public static final AuthorizationResponseCode invalidaasignature;
    public static final AuthorizationResponseCode wrongea;
    public static final AuthorizationResponseCode unknownits;
    public static final AuthorizationResponseCode invalidsignature;
    public static final AuthorizationResponseCode invalidencryptionkey;
    public static final AuthorizationResponseCode deniedpermissions;
    public static final AuthorizationResponseCode deniedtoomanycerts;
    
    public AuthorizationResponseCode(final int n) {
        super(n);
        this.assertValues();
    }
    
    public AuthorizationResponseCode(final BigInteger bigInteger) {
        super(bigInteger);
        this.assertValues();
    }
    
    public AuthorizationResponseCode(final byte[] array) {
        super(array);
        this.assertValues();
    }
    
    protected void assertValues() {
        if (this.getValue().intValue() < 0 || this.getValue().intValue() > 26) {
            throw new IllegalArgumentException("invalid enumeration value " + this.getValue());
        }
    }
    
    private AuthorizationResponseCode(final ASN1Enumerated asn1Enumerated) {
        super(asn1Enumerated.getValue());
        this.assertValues();
    }
    
    public static AuthorizationResponseCode getInstance(final Object o) {
        if (o instanceof AuthorizationResponseCode) {
            return (AuthorizationResponseCode)o;
        }
        if (o != null) {
            return new AuthorizationResponseCode(ASN1Enumerated.getInstance(o));
        }
        return null;
    }
    
    static {
        ok = new AuthorizationResponseCode(0);
        its_aa_cantparse = new AuthorizationResponseCode(1);
        its_aa_badcontenttype = new AuthorizationResponseCode(2);
        its_aa_imnottherecipient = new AuthorizationResponseCode(3);
        its_aa_unknownencryptionalgorithm = new AuthorizationResponseCode(4);
        its_aa_decryptionfailed = new AuthorizationResponseCode(5);
        its_aa_keysdontmatch = new AuthorizationResponseCode(6);
        its_aa_incompleterequest = new AuthorizationResponseCode(7);
        its_aa_invalidencryptionkey = new AuthorizationResponseCode(8);
        its_aa_outofsyncrequest = new AuthorizationResponseCode(9);
        its_aa_unknownea = new AuthorizationResponseCode(10);
        its_aa_invalidea = new AuthorizationResponseCode(11);
        its_aa_deniedpermissions = new AuthorizationResponseCode(12);
        aa_ea_cantreachea = new AuthorizationResponseCode(13);
        ea_aa_cantparse = new AuthorizationResponseCode(14);
        ea_aa_badcontenttype = new AuthorizationResponseCode(15);
        ea_aa_imnottherecipient = new AuthorizationResponseCode(16);
        ea_aa_unknownencryptionalgorithm = new AuthorizationResponseCode(17);
        ea_aa_decryptionfailed = new AuthorizationResponseCode(18);
        invalidaa = new AuthorizationResponseCode(19);
        invalidaasignature = new AuthorizationResponseCode(20);
        wrongea = new AuthorizationResponseCode(21);
        unknownits = new AuthorizationResponseCode(22);
        invalidsignature = new AuthorizationResponseCode(23);
        invalidencryptionkey = new AuthorizationResponseCode(24);
        deniedpermissions = new AuthorizationResponseCode(25);
        deniedtoomanycerts = new AuthorizationResponseCode(26);
    }
}
