/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: FSSPAuthenticationContextInfo.java,v 1.3 2008/11/10 22:56:58 veiming Exp $
*
*/
/**
* The <CODE>FSSPAuthenticationContextInfo</CODE> is used to contain the
* information about the AuthenticationContext to AuthenticationLevel mapping
*/
public class FSSPAuthenticationContextInfo {
/**
* Creates new <code>FSSPAuthenticationContextInfo</code> object.
*/
public FSSPAuthenticationContextInfo() {
}
/**
* Constructs a new object.
* @param mapping a string that contains service provider's authentication
* context mapping. It is retrieved from the provider's extended meta.
* @throws FSException if an error occured during the parsing
*/
throws FSException
{
}
while (stk.hasMoreTokens()) {
if (equalSign == -1) {
}
try {
} else {
}
} catch (IndexOutOfBoundsException ie) {
} catch (NumberFormatException ne) {
}
}
if (authenticationContext == null ||
authenticationLevel == -1) {
}
}
/**
* Creates new FSSPAuthenticationContextInfo
* @param authenticationContext the authContext name.
* @param authenticationLevel the authentication level.
* @throws FSSPAuthenticationContextInfo if
* <code>authenticationContext</code> or
* <code>authenticationLevel</code> is invalid.
*/
public FSSPAuthenticationContextInfo(
) throws FSException
{
}
/**
* Creates new FSSPAuthenticationContextInfo
*
* @param authenticationContext the authContext name.
* @param authenticationLevel the authentication level.
* @throws FSSPAuthenticationContextInfo if
* <code>authenticationContext</code> or
* <code>authenticationLevel</code> is invalid.
*/
public FSSPAuthenticationContextInfo(
) throws FSException
{
}
/**
* Returns the authentication context.
* @return Authentication Context.
*/
return authenticationContext;
}
/**
* Sets authentication context.
*
* @param authenticaionContext Authentication Context.
* @throws FSException if
* <code>authenticaionContext</code> is blank.
*/
throws FSException
{
if ((authenticaionContext == null) ||
) {
throw new FSException(
}
}
/**
* Returns authentication level.
* @return Authentication Level.
*/
public int getAuthenticationLevel() {
return authenticationLevel;
}
/**
* Sets authentication level.
*
* @param authenticationLevel Authentication Level.
* @throws FSException if <code>authenticationLevel</code>
* is negative.
*/
throws FSException
{
if (authenticationLevel < 0) {
throw new FSException(
}
}
/**
* Sets authentication level.
*
* @param authenticationLevel Authentication Level.
* @throws FSException if <code>authenticationLevel</code>
* is negative.
*/
throws FSException
{
try {
} catch (ValidationException e) {
throw new FSException(
}
}
}