1 /* 2 * Copyright [2005] [University Corporation for Advanced Internet Development, Inc.] 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * 19 */ 20 21 package org.opensaml.saml2.core.impl; 22 23 import java.util.List; 24 25 import org.opensaml.common.impl.AbstractSAMLObject; 26 import org.opensaml.saml2.core.IDPEntry; 27 import org.opensaml.xml.XMLObject; 28 29 /** 30 * Concrete implementation of {@link org.opensaml.saml2.core.IDPEntry}. 31 */ 32 public class IDPEntryImpl extends AbstractSAMLObject implements IDPEntry { 33 34 /** The unique identifier of the IdP. */ 35 private String providerID; 36 37 /** Human-readable name for the IdP. */ 38 private String name; 39 40 /** 41 * URI reference representing the location of a profile-specific endpoint supporting the authentication request 42 * protocol. 43 */ 44 private String loc; 45 46 /** 47 * Constructor. 48 * 49 * @param namespaceURI the namespace the element is in 50 * @param elementLocalName the local name of the XML element this Object represents 51 * @param namespacePrefix the prefix for the given namespace 52 */ 53 protected IDPEntryImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { 54 super(namespaceURI, elementLocalName, namespacePrefix); 55 } 56 57 /** {@inheritDoc} */ 58 public String getProviderID() { 59 return this.providerID; 60 } 61 62 /** {@inheritDoc} */ 63 public void setProviderID(String newProviderID) { 64 this.providerID = prepareForAssignment(this.providerID, newProviderID); 65 66 } 67 68 /** {@inheritDoc} */ 69 public String getName() { 70 return this.name; 71 } 72 73 /** {@inheritDoc} */ 74 public void setName(String newName) { 75 this.name = prepareForAssignment(this.name, newName); 76 77 } 78 79 /** {@inheritDoc} */ 80 public String getLoc() { 81 return this.loc; 82 } 83 84 /** {@inheritDoc} */ 85 public void setLoc(String newLoc) { 86 this.loc = prepareForAssignment(this.loc, newLoc); 87 88 } 89 90 /** {@inheritDoc} */ 91 public List<XMLObject> getOrderedChildren() { 92 // no children 93 return null; 94 } 95 }