/* * Copyright (c) 2013, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.wso2.carbon.identity.application.authentication.framework.config.model; import org.wso2.carbon.identity.application.authentication.framework.ApplicationAuthenticator; import org.wso2.carbon.identity.application.authentication.framework.AuthenticatorStateInfo; import org.wso2.carbon.identity.application.common.model.IdentityProvider; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * This is a wrapper class for ApplicationAuthenticator */ public class AuthenticatorConfig implements Serializable { private static final long serialVersionUID = 4391415512399764048L; private String name; private boolean enabled; private ApplicationAuthenticator applicationAuthenticator; private AuthenticatorStateInfo authenticatorStateInfo; private Map<String, String> parameterMap; private Map<String, IdentityProvider> idps = new HashMap<String, IdentityProvider>(); private List<String> idpNames = new ArrayList<String>(); public AuthenticatorConfig() { } public AuthenticatorConfig(String name, boolean enabled, Map<String, String> parameterMap) { this.name = name; this.enabled = enabled; this.parameterMap = parameterMap; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Map<String, String> getParameterMap() { return parameterMap; } public void setParameterMap(Map<String, String> parameterMap) { this.parameterMap = parameterMap; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public ApplicationAuthenticator getApplicationAuthenticator() { return applicationAuthenticator; } public void setApplicationAuthenticator( ApplicationAuthenticator applicationAuthenticator) { this.applicationAuthenticator = applicationAuthenticator; } public AuthenticatorStateInfo getAuthenticatorStateInfo() { return authenticatorStateInfo; } public void setAuthenticatorStateInfo( AuthenticatorStateInfo authenticatorStateInfo) { this.authenticatorStateInfo = authenticatorStateInfo; } public List<String> getIdpNames() { return idpNames; } public Map<String, IdentityProvider> getIdps() { return idps; } }