1 /* 2 * Copyright 2009 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 package org.opensaml.ws.wssecurity.impl; 18 19 import org.opensaml.ws.wssecurity.EncodedString; 20 21 /** 22 * Implementation of {@link EncodedString}. 23 */ 24 public class EncodedStringImpl extends AttributedStringImpl implements EncodedString { 25 26 /** The encodingType attribute value. */ 27 private String encodingType; 28 29 /** 30 * Constructor. 31 * 32 * @param namespaceURI namespace of the element 33 * @param elementLocalName name of the element 34 * @param namespacePrefix namespace prefix of the element 35 */ 36 public EncodedStringImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { 37 super(namespaceURI, elementLocalName, namespacePrefix); 38 } 39 40 /** {@inheritDoc} */ 41 public String getEncodingType() { 42 return encodingType; 43 } 44 45 /** {@inheritDoc} */ 46 public void setEncodingType(String newEncodingType) { 47 encodingType = prepareForAssignment(encodingType, newEncodingType); 48 } 49 50 }