001/*
002 * oauth2-oidc-sdk
003 *
004 * Copyright 2012-2021, Connect2id Ltd and contributors.
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use
007 * this file except in compliance with the License. You may obtain a copy of the
008 * License at
009 *
010 *    http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software distributed
013 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
014 * CONDITIONS OF ANY KIND, either express or implied. See the License for the
015 * specific language governing permissions and limitations under the License.
016 */
017
018package com.nimbusds.openid.connect.sdk.federation.policy.operations;
019
020import com.nimbusds.openid.connect.sdk.federation.policy.language.OperationName;
021
022import java.util.Arrays;
023import java.util.Collections;
024import java.util.List;
025
026/**
027 * The standard policy operations defined in OpenID Connect Federation 1.0.
028 *
029 * <p>Related specifications:
030 *
031 * <ul>
032 *     <li>OpenID Connect Federation 1.0, section 5.1.2.
033 * </ul>
034 */
035public final class StandardOperations {
036
037
038        /**
039         * The policy operation names in the order they must be applied.
040         */
041        public static final List<OperationName> NAMES_IN_APPLICATION_ORDER = Collections.unmodifiableList(
042                Arrays.asList(
043                        ValueOperation.NAME,
044                        AddOperation.NAME,
045                        DefaultOperation.NAME,
046                        EssentialOperation.NAME,
047                        SubsetOfOperation.NAME,
048                        SupersetOfOperation.NAME,
049                        OneOfOperation.NAME
050                )
051        );
052
053
054        private StandardOperations() {}
055}