/** * Copyright (c) Codice Foundation * <p> * This is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser * General Public License as published by the Free Software Foundation, either version 3 of the * License, or any later version. * <p> * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. A copy of the GNU Lesser General Public License * is distributed along with this program and can be found at * <http://www.gnu.org/licenses/lgpl.html>. **/ package org.codice.ddf.security.idp.binding.soap; import java.util.Map; import org.codice.ddf.security.idp.binding.api.Binding; import org.codice.ddf.security.idp.binding.api.RequestDecoder; import org.codice.ddf.security.idp.binding.api.ResponseCreator; import org.codice.ddf.security.idp.binding.api.Validator; import ddf.security.samlp.SystemCrypto; import ddf.security.samlp.impl.EntityInformation; public class SoapBinding implements Binding { private final SoapRequestDecoder decoder; private final SoapResponseCreator creator; private final SoapValidator validator; public SoapBinding(SystemCrypto systemCrypto, Map<String, EntityInformation> serviceProviders) { decoder = new SoapRequestDecoder(); creator = new SoapResponseCreator(systemCrypto, serviceProviders); validator = new SoapValidator(systemCrypto, serviceProviders); } @Override public RequestDecoder decoder() { return decoder; } @Override public ResponseCreator creator() { return creator; } @Override public Validator validator() { return validator; } }