/* * 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.config.auth.data; import java.io.Serializable; import java.security.PrivateKey; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Map; import at.gv.egiz.eaaf.core.api.data.EAAFConstants; import at.gv.egovernment.moa.id.commons.api.IOAAuthParameters; import at.gv.egovernment.moa.id.commons.api.data.SAML1ConfigurationParameters; import at.gv.egovernment.moa.id.commons.api.data.StorkAttribute; import at.gv.egovernment.moa.id.commons.api.data.StorkAttributeProviderPlugin; import at.gv.egovernment.moa.id.commons.api.exceptions.ConfigurationException; /** * @author tlenz * */ public class DynamicOAAuthParameters implements IOAAuthParameters, Serializable{ /** * */ private static final long serialVersionUID = 1648437815185614566L; private String publicURLPrefix; private boolean isInderfederationIDP; private String IDPQueryURL; private boolean hasBaseIdProcessingRestriction; private boolean hasBaseIdTransfergRestriction; private String oaTargetAreaIdentifier; /* (non-Javadoc) * @see at.gv.egovernment.moa.id.commons.api.IOAAuthParameters#hasBaseIdInternalProcessingRestriction() */ @Override public boolean hasBaseIdInternalProcessingRestriction() { return this.hasBaseIdProcessingRestriction; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.commons.api.IOAAuthParameters#hasBaseIdTransferRestriction() */ @Override public boolean hasBaseIdTransferRestriction() { return this.hasBaseIdTransfergRestriction; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.commons.api.IOAAuthParameters#getAreaSpecificTargetIdentifier() */ @Override public String getAreaSpecificTargetIdentifier() { return this.oaTargetAreaIdentifier; } /** * @param hasBaseIdProcessingRestriction the hasBaseIdProcessingRestriction to set */ public void setHasBaseIdProcessingRestriction(boolean hasBaseIdProcessingRestriction) { this.hasBaseIdProcessingRestriction = hasBaseIdProcessingRestriction; } /** * @param hasBaseIdTransfergRestriction the hasBaseIdTransfergRestriction to set */ public void setHasBaseIdTransfergRestriction(boolean hasBaseIdTransfergRestriction) { this.hasBaseIdTransfergRestriction = hasBaseIdTransfergRestriction; } /** * @param oaTargetAreaIdentifier the oaTargetAreaIdentifier to set */ public void setAreaSpecificTargetIdentifier(String oaTargetAreaIdentifier) { this.oaTargetAreaIdentifier = oaTargetAreaIdentifier; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.commons.api.IOAAuthParameters#getAreaSpecificTargetIdentifierFriendlyName() */ @Override public String getAreaSpecificTargetIdentifierFriendlyName() throws ConfigurationException { return null; } // /* (non-Javadoc) // * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getTarget() // */ // //@Override // public String getTarget() { // return this.target; // } // // /* (non-Javadoc) // * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getIdentityLinkDomainIdentifier() // */ // //@Override // public String getIdentityLinkDomainIdentifier() { // return this.businessTarget; // } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getIDPAttributQueryServiceURL() */ @Override public String getIDPAttributQueryServiceURL() { return this.IDPQueryURL; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getKeyBoxIdentifier() */ @Override public String getKeyBoxIdentifier() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getSAML1Parameter() */ @Override public SAML1ConfigurationParameters getSAML1Parameter() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getTemplateURL() */ @Override public List getTemplateURL() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getAditionalAuthBlockText() */ @Override public String getAditionalAuthBlockText() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getBKUURL(java.lang.String) */ @Override public String getBKUURL(String bkutype) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getBKUURL() */ @Override public List getBKUURL() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#useSSO() */ @Override public boolean useSSO() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#useSSOQuestion() */ @Override public boolean useSSOQuestion() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getMandateProfiles() */ @Override public List getMandateProfiles() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getIdentityLinkDomainIdentifierType() */ //@Override public String getIdentityLinkDomainIdentifierType() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isShowMandateCheckBox() */ @Override public boolean isShowMandateCheckBox() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isOnlyMandateAllowed() */ @Override public boolean isOnlyMandateAllowed() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isShowStorkLogin() */ @Override public boolean isShowStorkLogin() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getQaaLevel() */ @Override public String getQaaLevel() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isRequireConsentForStorkAttributes() */ @Override public boolean isRequireConsentForStorkAttributes() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getStorkAPs() */ @Override public Collection getStorkAPs() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getBKUSelectionTemplate() */ @Override public byte[] getBKUSelectionTemplate() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getSendAssertionTemplate() */ @Override public byte[] getSendAssertionTemplate() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getPepsList() */ @Override public Collection getPepsList() { // TODO Auto-generated method stub return null; } // /** // * @param isBusinessService the isBusinessService to set // */ // public void setBusinessService(boolean isBusinessService) { // businessService = isBusinessService; // } // /** // * @param target the target to set // */ // public void setTarget(String target) { // this.target = target; // } // // /** // * @param businessTarget the businessTarget to set // */ // public void setBusinessTarget(String businessTarget) { // this.businessTarget = businessTarget; // } /** * @param inderfederatedIDP the inderfederatedIDP to set */ public void setInderfederatedIDP(boolean inderfederatedIDP) { isInderfederationIDP = inderfederatedIDP; } /** * @param iDPQueryURL the iDPQueryURL to set */ public void setIDPQueryURL(String iDPQueryURL) { IDPQueryURL = iDPQueryURL; } /** * @param applicationID the applicationID to set */ public void setApplicationID(String applicationID) { publicURLPrefix = applicationID; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isInboundSSOInterfederationAllowed() */ @Override public boolean isInboundSSOInterfederationAllowed() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isInterfederationSSOStorageAllowed() */ @Override public boolean isInterfederationSSOStorageAllowed() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isOutboundSSOInterfederationAllowed() */ @Override public boolean isOutboundSSOInterfederationAllowed() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isTestCredentialEnabled() */ @Override public boolean isTestCredentialEnabled() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getTestCredentialOIDs() */ @Override public List getTestCredentialOIDs() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getBPKDecBpkDecryptionParameters() */ @Override public PrivateKey getBPKDecBpkDecryptionKey() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isPassivRequestUsedForInterfederation() */ @Override public boolean isPassivRequestUsedForInterfederation() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isPerformLocalAuthenticationOnInterfederationError() */ @Override public boolean isPerformLocalAuthenticationOnInterfederationError() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getFullConfiguration() */ @Override public Map getFullConfiguration() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getConfigurationValue(java.lang.String) */ @Override public String getConfigurationValue(String key) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getFriendlyName() */ @Override public String getFriendlyName() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getPublicURLPrefix() */ @Override public String getPublicURLPrefix() { return this.publicURLPrefix; } // /* (non-Javadoc) // * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getBusinessService() // */ // //@Override // public boolean getBusinessService() { // return this.businessService; // } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getTargetFriendlyName() */ //@Override public String getTargetFriendlyName() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isInderfederationIDP() */ @Override public boolean isInderfederationIDP() { return this.isInderfederationIDP; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isSTORKPVPGateway() */ @Override public boolean isSTORKPVPGateway() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getRequestedSTORKAttributes() */ @Override public Collection getRequestedSTORKAttributes() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#getReversionsLoggingEventCodes() */ @Override public List getReversionsLoggingEventCodes() { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isUseIDLTestTrustStore() */ @Override public boolean isUseIDLTestTrustStore() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isUseAuthBlockTestTestStore() */ @Override public boolean isUseAuthBlockTestTestStore() { // TODO Auto-generated method stub return false; } /* (non-Javadoc) * @see at.gv.egovernment.moa.id.config.auth.IOAAuthParameters#isRemovePBKFromAuthBlock() */ @Override public boolean isRemovePBKFromAuthBlock() { // TODO Auto-generated method stub return false; } @Override public List foreignbPKSectorsRequested() { // TODO Auto-generated method stub return null; } @Override public List additionalbPKSectorsRequested() { // TODO Auto-generated method stub return null; } @Override public boolean containsConfigurationKey(String arg0) { // TODO Auto-generated method stub return false; } @Override public List getTargetsWithNoBaseIdInternalProcessingRestriction() { // TODO Auto-generated method stub return null; } @Override public List getTargetsWithNoBaseIdTransferRestriction() { // TODO Auto-generated method stub return null; } @Override public String getUniqueIdentifier() { return getPublicURLPrefix(); } @Override public List getRequiredLoA() { if (getQaaLevel() != null) return Arrays.asList(getQaaLevel()); else return null; } @Override public String getConfigurationValue(String arg0, String arg1) { // TODO Auto-generated method stub return null; } @Override public Boolean isConfigurationValue(String arg0) { // TODO Auto-generated method stub return null; } @Override public boolean isConfigurationValue(String arg0, boolean arg1) { // TODO Auto-generated method stub return false; } @Override public String getLoAMatchingMode() { return EAAFConstants.EIDAS_LOA_MATCHING_MINIMUM; } }