All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.swedenconnect.opensaml.sweid.saml2.authn.umsg.UserMessage Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
/*
 * Copyright 2016-2024 Sweden Connect
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package se.swedenconnect.opensaml.sweid.saml2.authn.umsg;

import jakarta.annotation.Nonnull;
import jakarta.annotation.Nullable;
import org.opensaml.core.xml.AttributeExtensibleXMLObject;
import org.opensaml.saml.common.SAMLObject;

import javax.xml.namespace.QName;
import java.util.List;

/**
 * Definition of the {@code UserMessage} type.
 *
 * 
 * {@code
 *   
 *
 *   
 *     
 *       List of user messages (in different languages)
 *     
 *     
 *       
 *     
 *     
 *       
 *         The MIME type of the user message(s)
 *       
 *     
 *     
 *   
 *  }
 *  
* * @author Martin Lindström */ public interface UserMessage extends SAMLObject, AttributeExtensibleXMLObject { /** Name of the element. */ String DEFAULT_ELEMENT_LOCAL_NAME = "UserMessage"; /** Default element name. */ QName DEFAULT_ELEMENT_NAME = new QName(UserMessageConstants.UMSG_NS, DEFAULT_ELEMENT_LOCAL_NAME, UserMessageConstants.UMSG_NS_PREFIX); /** Local name of the type */ String TYPE_LOCAL_NAME = "UserMessageType"; /** QName of the XSI type. */ QName TYPE_NAME = new QName(UserMessageConstants.UMSG_NS, TYPE_LOCAL_NAME, UserMessageConstants.UMSG_NS_PREFIX); /** Attribute label for the mimeType attribute. */ String MIME_TYPE_ATTR_NAME = "mimeType"; /** The default MIME type. */ String DEFAULT_MIME_TYPE = "text/plain"; /** * Gets a reference to the list of {@link Message} elements. * * @return a list of {@link Message} elements */ @Nonnull List getMessages(); /** * Gets the value of the {@code mimeType} attribute. * * @return the MIME type */ @Nullable String getMimeType(); /** * Assigns the value for the {@code mimeType} attribute. * * @param mimeType the MIME type */ void setMimeType(@Nullable final String mimeType); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy