001/*
002 * Copyright 2026 Revetware LLC.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package com.revetsec.saml;
017
018import javax.annotation.concurrent.Immutable;
019
020/**
021 * Explicit per-connection SAML compatibility modes. All are disabled by default.
022 *
023 * @since 1.0.0
024 */
025@Immutable
026public enum SamlCompatibilityMode {
027    /** Accept RSA-SHA1 XML and Redirect signatures from this configured IdP. */
028    SHA1_SIGNATURES,
029    /** Accept AES-CBC encryption only under a verified signed Response. */
030    AES_CBC_ENCRYPTION,
031    /** Permit the separate unsolicited-login method with its tighter age bound. */
032    UNSOLICITED_RESPONSES
033}