/******************************************************************************* * Copyright 2014 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. *******************************************************************************/ package at.gv.egovernment.moa.id.configuration.data.oa; import at.gv.egovernment.moa.id.commons.db.dao.config.AuthComponentOA; import at.gv.egovernment.moa.id.commons.db.dao.config.OASAML1; import at.gv.egovernment.moa.id.commons.db.dao.config.OnlineApplication; public class OASAML1Config { private boolean isActive = false; private boolean provideStammZahl = false; private boolean provideAuthBlock = false; private boolean provideIdentityLink = false; private boolean provideCertificate = false; private boolean provideFullMandateData = false; private boolean useCondition = false; private int conditionLength = -1; public OASAML1Config() { } public void parse(OnlineApplication dbOAConfig) { AuthComponentOA authdata = dbOAConfig.getAuthComponentOA(); if (authdata != null) { OASAML1 saml1 = authdata.getOASAML1(); if (saml1 != null) { provideAuthBlock = saml1.isProvideAUTHBlock(); provideCertificate = saml1.isProvideCertificate(); provideFullMandateData = saml1.isProvideFullMandatorData(); provideIdentityLink = saml1.isProvideIdentityLink(); provideStammZahl = saml1.isProvideStammzahl(); if (saml1.isUseCondition() != null) useCondition = saml1.isUseCondition(); if (saml1.getConditionLength() != null) conditionLength = saml1.getConditionLength().intValue(); if (saml1.isIsActive() != null) isActive = saml1.isIsActive(); } } } public boolean isProvideStammZahl() { return provideStammZahl; } public void setProvideStammZahl(boolean provideStammZahl) { this.provideStammZahl = provideStammZahl; } public boolean isProvideAuthBlock() { return provideAuthBlock; } public void setProvideAuthBlock(boolean provideAuthBlock) { this.provideAuthBlock = provideAuthBlock; } public boolean isProvideIdentityLink() { return provideIdentityLink; } public void setProvideIdentityLink(boolean provideIdentityLink) { this.provideIdentityLink = provideIdentityLink; } public boolean isProvideCertificate() { return provideCertificate; } public void setProvideCertificate(boolean provideCertificate) { this.provideCertificate = provideCertificate; } public boolean isProvideFullMandateData() { return provideFullMandateData; } public void setProvideFullMandateData(boolean provideFullMandateData) { this.provideFullMandateData = provideFullMandateData; } public boolean isUseCondition() { return useCondition; } public void setUseCondition(boolean useCondition) { this.useCondition = useCondition; } public int getConditionLength() { return conditionLength; } public void setConditionLength(int conditionLength) { this.conditionLength = conditionLength; } /** * @return the isActive */ public boolean isActive() { return isActive; } /** * @param isActive the isActive to set */ public void setActive(boolean isActive) { this.isActive = isActive; } }