1 /* 2 * Copyright 2008 Members of the EGEE Collaboration. 3 * Copyright 2008 University Corporation for Advanced Internet Development, Inc. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 package org.opensaml.ws.wssecurity.impl; 19 20 import org.opensaml.ws.wssecurity.Reference; 21 import org.opensaml.xml.util.AttributeMap; 22 23 /** 24 * ReferenceImpl. 25 * 26 */ 27 public class ReferenceImpl extends AbstractWSSecurityObject implements Reference { 28 29 /** wsse:Reference/@URI attribute. */ 30 private String uri; 31 32 /** wsse:Reference/@ValueType attribute. */ 33 private String valueType; 34 35 /** Wildcard attributes. */ 36 private AttributeMap unknownAttributes; 37 38 /** 39 * Constructor. 40 * 41 * @param namespaceURI namespace of the element 42 * @param elementLocalName name of the element 43 * @param namespacePrefix namespace prefix of the element 44 */ 45 public ReferenceImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { 46 super(namespaceURI, elementLocalName, namespacePrefix); 47 unknownAttributes = new AttributeMap(this); 48 } 49 50 /** {@inheritDoc} */ 51 public String getURI() { 52 return uri; 53 } 54 55 /** {@inheritDoc} */ 56 public void setURI(String newURI) { 57 uri = prepareForAssignment(uri, newURI); 58 } 59 60 /** {@inheritDoc} */ 61 public String getValueType() { 62 return valueType; 63 } 64 65 /** {@inheritDoc} */ 66 public void setValueType(String newValueType) { 67 valueType = prepareForAssignment(valueType, newValueType); 68 } 69 70 /** {@inheritDoc} */ 71 public AttributeMap getUnknownAttributes() { 72 return unknownAttributes; 73 } 74 75 }