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; 18 19 import javax.xml.namespace.QName; 20 21 /** 22 * Interface for elements of complex type EncodedString. 23 */ 24 public interface EncodedString extends AttributedString { 25 26 /** Local name of the XSI type. */ 27 public static final String TYPE_LOCAL_NAME = "EncodedString"; 28 29 /** QName of the XSI type. */ 30 public static final QName TYPE_NAME = 31 new QName(WSSecurityConstants.WSSE_NS, TYPE_LOCAL_NAME, WSSecurityConstants.WSSE_PREFIX); 32 33 /** The EncodingType attribute name. */ 34 public static final String ENCODING_TYPE_ATTRIB_NAME = "EncodingType"; 35 36 /** The EncodingType attribute value <code>#Base64Binary</code>. */ 37 public static final String ENCODING_TYPE_BASE64_BINARY = WSSecurityConstants.WS_SECURITY_NS + "#Base64Binary"; 38 39 /** 40 * Returns the EncodingType attribute value. 41 * 42 * @return the EncodingType attribute value. 43 */ 44 public String getEncodingType(); 45 46 /** 47 * Sets the EncodingType attribute value. 48 * 49 * @param newEncodingType the EncodingType attribute value. 50 */ 51 public void setEncodingType(String newEncodingType); 52 53 }