001/* 002 * oauth2-oidc-sdk 003 * 004 * Copyright 2012-2020, 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.factories; 019 020 021import com.nimbusds.openid.connect.sdk.federation.policy.MetadataPolicy; 022import com.nimbusds.openid.connect.sdk.rp.OIDCClientInformation; 023import com.nimbusds.openid.connect.sdk.rp.OIDCClientMetadata; 024 025 026/** 027 * OpenID relying party metadata policy factory. 028 */ 029@Deprecated 030public interface RPMetadataPolicyFactory { 031 032 033 /** 034 * Creates an OpenID relying party metadata policy for an explicit 035 * client registration. 036 * 037 * @param initialMetadata The initial metadata submitted by the relying 038 * party. Must not be {@code null}. 039 * @param target The registered OpenID relying party 040 * information. Must not be {@code null}. 041 * 042 * @return The OpenID relying party metadata policy. 043 * 044 * @throws PolicyFormulationException If the metadata policy couldn't 045 * be formulated. 046 */ 047 MetadataPolicy create(final OIDCClientMetadata initialMetadata, final OIDCClientInformation target) 048 throws PolicyFormulationException; 049}