FAMSecurityToken.java revision 4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1c
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 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: FAMSecurityToken.java,v 1.6 2009/12/23 22:32:28 mrudul_uchil Exp $
*
*/
/**
* The class <code>FAMSecurityToken</code> represents Federation
* OpenSSO Security Token using OpenSSO Single Sign-on
* Token.
*/
public class FAMSecurityToken implements SecurityToken {
/**
* Constructor for FAMSecurityToken
* @param ssoToken Single Sign on token of the subject.
* @throws com.sun.identity.wss.security.SecurityException
*/
try {
} catch (SSOException se) {
}
}
/**
* Constructor that uses DOM Element
* @param element the DOM representation of security token.
* @throws com.sun.identity.wss.security.SecurityException
*/
throw new SecurityException(
}
throw new SecurityException(
}
if(length == 0) {
throw new SecurityException(
}
for (int i=0; i < length; i++ ) {
continue;
}
}
}
}
/**
* Returns the security token type.
* @return the security token type.
*/
public String getTokenType() {
return tokenType;
}
/**
* Returns the security token value.
* @return the security token value.
*/
public String getTokenID() {
return tokenID;
}
/**
* Returns the Application/Client token value.
* @return the Application/Client token value.
*/
public String getAppTokenID() {
return appTokenID;
}
/**
* Convert the security token into DOM Object.
*
* @return the DOM Document Element.
*
* @exception SecurityException if any failure is occured.
*/
.append("</fam:FAMToken>");
} else {
.append("</fam:FAMToken>");
}
return document.getDocumentElement();
}
}