AuthSSOProvider.java revision 87d68743726585ee101ba2e7be2cf06cd34ebb80
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 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: AuthSSOProvider.java,v 1.2 2008/06/25 05:41:53 qcheng Exp $
*
* Portions copyright 2014-2015 ForgeRock AS.
*/
public class AuthSSOProvider implements SSOProvider {
public AuthSSOProvider() {
// do nothing
}
throws SSOException, UnsupportedOperationException {
throw (new UnsupportedOperationException());
}
{
try {
return (auth.getSSOToken());
} catch (Exception e) {
e.printStackTrace();
throw (new SSOException(e));
}
}
try {
"invalidtoken", null);
} catch (Exception e) {
throw (new SSOException(e));
}
return (token);
}
public SSOToken createSSOToken(String tokenId, boolean invokedByAuth, boolean possiblyResetIdleTime)
throws SSOException, UnsupportedOperationException {
return createSSOToken(tokenId);
}
throws SSOException, UnsupportedOperationException {
return null;
}
}
throw new UnsupportedOperationException("Not implemented");
}
}
/**
* This class ignores the "refresh" parameter, which is just not needed here.
* @param token The SSOToken object to be validated.
* @param ignored The refresh parameter, which is completely ignored.
* @return true if the token is valid, false otherwise.
*/
return isValidToken(token);
}
}
}
throws SSOException, UnsupportedOperationException {
}
throws SSOException {
throw new UnsupportedOperationException("Not implemented");
}
throws SSOException {
throw new UnsupportedOperationException("Not implemented");
}
}