/**
* 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: FSIDPAuthenticationContextInfo.java,v 1.3 2008/11/10 22:56:58 veiming Exp $
*
*/
/**
* This class is used to store the IDP Authentication Context Information.
*/
public class FSIDPAuthenticationContextInfo
implements Serializable
{
/**
* Default constructor.
*/
public FSIDPAuthenticationContextInfo() {
}
/**
* Constructs a new object.
* @param infoString a string that contains one idp authentication context
* mapping
*/
throws FSException
{
if (infoString == null) {
}
while (stk.hasMoreTokens()) {
if (equalSign == -1) {
}
try {
} else if (key.equalsIgnoreCase(
{
} else if (key.equalsIgnoreCase(
{
} else if (key.equalsIgnoreCase(
{
} else {
}
} catch (IndexOutOfBoundsException ie) {
} catch (NumberFormatException ne) {
}
}
if (authenticationContext == null ||
moduleIndicatorKey == null ||
moduleIndicatorValue == null ||
level == -1)
{
}
}
/**
* Creates new <code>FSIDPAuthenticationContextInfo</code> instance.
*
* @param authenticationContext Authentication Context.
* @param moduleIndicatorKey module indicator key.
* @param moduleIndicatorValue module indicator value.
* @param level Level of the auth module
* @throws FSException if <code>authenticationContext</code> is blank.
*/
public FSIDPAuthenticationContextInfo(
int level
) throws FSException
{
}
/**
* Creates new <code>FSIDPAuthenticationContextInfo</code> instance.
*
* @param authenticationContext Authentication Context.
* @param moduleIndicatorKey module indicator key.
* @param moduleIndicatorValue module indicator value.
* @param level Level
* @throws FSException if <code>authenticationContext</code> is blank,
* or cannot obtain an int from <code>level</code>.
*/
public FSIDPAuthenticationContextInfo(
) throws FSException
{
}
/**
* Returns authentication context.
* @return authentication context.
*/
return authenticationContext;
}
/**
* Sets authentication context.
*
* @param authenticationContext authentication context.
* @throws FSException if
* <code>authenticationContext</code> is blank.
*/
throws FSException
{
if ((authenticationContext == null) ||
) {
throw new FSException(
}
}
/**
* Returns level.
*
* @return level.
*/
public int getLevel() {
return level;
}
/**
* Sets level.
*
* @param level Strength level.
* @throws FSException if <code>level</code> is not
* an integer.
*/
throws FSException
{
try {
} catch (ValidationException e) {
throw new FSException(
}
}
/**
* Sets level.
*
* @param level level of the auth module.
*/
}
/**
* Returns module indicator key.
* @return module indicator key.
*/
return moduleIndicatorKey;
}
/**
* Sets module indicator key.
*
* @param moduleIndicatorKey module indicator key.
*/
this.moduleIndicatorKey = moduleIndicatorKey;
}
/**
* Returns module indicator.
* @return module indicator of the module that implements this
* Authentication Context.
*/
return moduleIndicatorValue;
}
/**
* Sets module indicator value.
* @param moduleIndicatorValue module indicator.
*/
}
}