java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<Message>
se.swedenconnect.opensaml.sweid.saml2.authn.umsg.build.MessageBuilder
All Implemented Interfaces:
SAMLObjectBuilder<Message>

public class MessageBuilder extends AbstractSAMLObjectBuilder<Message>
A builder for Message objects.
Author:
Martin Lindström
  • Constructor Details

    • MessageBuilder

      public MessageBuilder()
  • Method Details

    • builder

      public static MessageBuilder builder()
      Creates a new MessageBuilder.
      Returns:
      a MessageBuilder
    • getObjectType

      @Nonnull protected Class<Message> getObjectType()
      Specified by:
      getObjectType in class AbstractSAMLObjectBuilder<Message>
    • language

      @Nonnull public MessageBuilder language(@Nonnull String language)
      Assigns the language tag.
      Parameters:
      language - the language tag
      Returns:
      the builder
    • content

      @Nonnull public MessageBuilder content(@Nonnull String content)
      Assigns the message content in its non-encoded form (i.e., the text as a UTF-8 string).
      Parameters:
      content - the message content
      Returns:
      the builder