SSOProviderImpl.java revision 87d68743726585ee101ba2e7be2cf06cd34ebb80
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * The contents of this file are subject to the terms
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * of the Common Development and Distribution License
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * (the License). You may not use this file except in
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * You can obtain a copy of the License at
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * See the License for the specific language governing
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * permission and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * When distributing Covered Code, include this CDDL
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Header Notice in each file and include the License file
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * If applicable, add the following below the CDDL Header,
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * with the fields enclosed by brackets [] replaced by
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * your own identifying information:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * "Portions Copyrighted [year] [name of copyright owner]"
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * $Id: SSOProviderImpl.java,v 1.9 2009/02/19 05:04:01 bhavnab Exp $
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * Portions copyright 2013-2015 ForgeRock AS.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport com.iplanet.dpro.session.SessionException;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport org.forgerock.openam.session.SessionCache;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterimport org.forgerock.util.annotations.VisibleForTesting;
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * This <code>final</code> class <code>SSOProviderImpl</code> implements
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * <code>SSOProvider</code> interface and provides implementation of the methods
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster * to create , destroy , check the validity of a single sign on token.
.booleanValue();
throws SSOException {
return ssoToken;
} catch (Exception e) {
+ e.getMessage()
throw new SSOException(e);
return ssoToken;
} catch (Exception e) {
throw new SSOException(e);
* @param invokedByAuth boolean flag indicating that this method has been invoked by the AuthContext.getSSOToken()
* @param possiblyResetIdleTime If true, the idle time of the token/session may be reset to zero. If false, the
* @throws java.lang.UnsupportedOperationException only here to satisfy the interface, this is never thrown.
public SSOToken createSSOToken(String tokenId, boolean invokedByAuth, boolean possiblyResetIdleTime)
return ssoToken;
} catch (Exception e) {
+ tokenId
+ e.getMessage()
throw new SSOException(e);
throws SSOException,
return ssoToken;
} catch (Exception e) {
+ tokenId
+ e.getMessage()
throw new SSOException(e);
} catch (Exception e) {
} catch (Exception e) {
throw new SSOException(e);
} catch (SessionException e) {
throw new SSOException(e);
boolean check = false;
check = true;
} catch (Exception e) {
return check;
} catch (Exception e) {
throw new SSOException(e);
throws SSOException {
} catch (SessionException e) {
throw new SSOException(e);
throws SSOException {
if (s != null) {
} catch (SessionException e) {
throw new SSOException(e);
return results;