AmJBossAgentServiceResolver.java revision 772e6948bd1fe23ee7d309da6df96d9f99f04b46
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * The contents of this file are subject to the terms
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * of the Common Development and Distribution License
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * (the License). You may not use this file except in
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * compliance with the License.
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * You can obtain a copy of the License at
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * https://opensso.dev.java.net/public/CDDLv1.0.html or
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * See the License for the specific language governing
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * permission and limitations under the License.
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * When distributing Covered Code, include this CDDL
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * Header Notice in each file and include the License file
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * If applicable, add the following below the CDDL Header,
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * with the fields enclosed by brackets [] replaced by
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * your own identifying information:
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * "Portions Copyrighted [year] [name of copyright owner]"
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * $Id: AmJBossAgentServiceResolver.java,v 1.4 2010/02/05 00:30:20 leiming Exp $
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * Portions Copyrighted [2010] [ForgeRock AS]
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeperimport com.sun.identity.agents.filter.J2EEAuthenticationHandler;
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeperimport com.sun.identity.agents.arch.ServiceResolver;
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeperimport com.sun.identity.agents.filter.GenericJ2EELogoutHandler;
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeperimport com.sun.identity.agents.realm.GenericExternalVerificationHandler;
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeperimport com.sun.identity.agents.realm.AmRealmManager;
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * This class overrides the default service resolvers J2EE auth handler to
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * return a AmJBossAgent specific J2EE auth handler
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeperpublic class AmJBossAgentServiceResolver extends ServiceResolver {
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper /* (non-Javadoc)
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * @see ServiceResolver#getGlobalJ2EEAuthHandlerImpl()
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper public String getGlobalJ2EEAuthHandlerImpl() {
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper boolean webauth = false;
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper webauth = AmRealmManager.getSystemAccess().getManager().getConfigurationBoolean("jboss.webauth.available");
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper return AmJBossJ2EEAuthHandler.class.getName();
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper return J2EEAuthenticationHandler.class.getName();
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper /* (non-Javadoc)
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * @see ServiceResolver#getSSOTaskHandlerImpl()
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper return AmJBossSSOTaskHandler.class.getName();
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper /* (non-Javadoc)
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * @see ServiceResolver#getCDSSOTaskHandlerImpl()
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper return AmJBossCDSSOTaskHandler.class.getName();
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper /* (non-Javadoc)
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * @see ServiceResolver#getGlobalJ2EELogoutHandlerImpl()
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper public String getGlobalJ2EELogoutHandlerImpl() {
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper return GenericJ2EELogoutHandler.class.getName();
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper /* (non-Javadoc)
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper * @see ServiceResolver#getGlobalVerificationHandlerImpl()
772e6948bd1fe23ee7d309da6df96d9f99f04b46Mark de Reeper public String getGlobalVerificationHandlerImpl() {