001/** 002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 003 * 004 * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved 005 * 006 * The contents of this file are subject to the terms 007 * of the Common Development and Distribution License 008 * (the License). You may not use this file except in 009 * compliance with the License. 010 * 011 * You can obtain a copy of the License at 012 * https://opensso.dev.java.net/public/CDDLv1.0.html or 013 * opensso/legal/CDDLv1.0.txt 014 * See the License for the specific language governing 015 * permission and limitations under the License. 016 * 017 * When distributing Covered Code, include this CDDL 018 * Header Notice in each file and include the License file 019 * at opensso/legal/CDDLv1.0.txt. 020 * If applicable, add the following below the CDDL Header, 021 * with the fields enclosed by brackets [] replaced by 022 * your own identifying information: 023 * "Portions Copyrighted [year] [name of copyright owner]" 024 * 025 * $Id: IDPAuthnContextInfo.java,v 1.3 2008/06/25 05:47:51 qcheng Exp $ 026 * 027 */ 028 029 /* 030 * Portions Copyrighted 2011 ForgeRock AS 031 */ 032 033package com.sun.identity.saml2.plugins; 034 035import com.sun.identity.saml2.assertion.AuthnContext; 036import com.sun.identity.saml2.common.SAML2Exception; 037import java.util.Set; 038 039/** 040 * The class <code>IDPAuthnContextInfo</code> consists of the mapping 041 * between <code>AuthnContextClassRef</code> and the actual 042 * authentication mechanism at the Identity Provider. 043 * 044 * @supported.all.api 045 */ 046 047public class IDPAuthnContextInfo { 048 AuthnContext authnContext; 049 Set authnTypeAndValues; 050 Integer authnLevel; 051 052 /** 053 * The constructor. 054 * 055 * @param authnContext The <code>AuthnContext</code> that is returned 056 * to the requester. 057 * @param authnTypeAndValues The set of authentication mechanism 058 * @param authnLevel The Authentication Level associated to the Authentication 059 * context 060 */ 061 public IDPAuthnContextInfo(AuthnContext authnContext, 062 Set authnTypeAndValues, Integer authnLevel) { 063 this.authnContext = authnContext; 064 this.authnTypeAndValues = authnTypeAndValues; 065 this.authnLevel = authnLevel; 066 } 067 068 /** 069 * Returns the returning <code>AuthnContext</code> 070 * 071 * @return the returning <code>AuthnContext</code> 072 */ 073 public AuthnContext getAuthnContext() { 074 return authnContext; 075 } 076 077 /** 078 * Returns the set of authentication mechanism 079 * 080 * @return the set of authentication mechanism 081 */ 082 public Set getAuthnTypeAndValues() { 083 return authnTypeAndValues; 084 } 085 086 /** 087 * Returns the Authentication Level 088 * 089 * @return the Authentication level 090 */ 091 public Integer getAuthnLevel() { 092 return authnLevel; 093 } 094} 095
Copyright © 2010-2017, ForgeRock All Rights Reserved.