Class UserMessageBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<UserMessage>
se.swedenconnect.opensaml.sweid.saml2.authn.umsg.build.UserMessageBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<UserMessage>
A builder for
UserMessage
objects.- Author:
- Martin Lindström
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserMessageBuilder
builder()
Creates aUserMessageBuilder
.protected Class
<UserMessage> Adds aMessage
.Adds a list ofMessage
s.AddsMessage
s.Assigns the MIME type.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
UserMessageBuilder
public UserMessageBuilder()
-
-
Method Details
-
builder
Creates aUserMessageBuilder
.- Returns:
- a
UserMessageBuilder
-
getObjectType
- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<UserMessage>
-
mimeType
Assigns the MIME type.- Parameters:
mimeType
- the MIME type- Returns:
- the builder
-
message
Adds aMessage
.- Parameters:
message
- theMessage
to add- Returns:
- the builder
-
messages
Adds a list ofMessage
s.If messages have already been added, these will be overwritten.
- Parameters:
messages
- the messages to add (ifnull
, any previously added messages will be cleared)- Returns:
- the builder
-
messages
AddsMessage
s.If messages have already been added, these will be overwritten.
- Parameters:
messages
- the messages to add (ifnull
, any previously added messages will be cleared)- Returns:
- the builder
-