Class AssertionConsumerServiceBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<AssertionConsumerService>
se.swedenconnect.opensaml.saml2.metadata.build.AssertionConsumerServiceBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<AssertionConsumerService>
public class AssertionConsumerServiceBuilder
extends AbstractSAMLObjectBuilder<AssertionConsumerService>
A builder for
AssertionConsumerService elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssigns the binding of the servicebuilder()Utility method that creates a builder.protected Class<AssertionConsumerService> Returns the object type.Shortcut to assign theBindingattribute to Holder-of-key and thehoksso:ProtocolBindingattribute to the POST binding.Shortcut to assign theBindingattribute to Holder-of-key and thehoksso:ProtocolBindingattribute to the Redirect binding.Assigns the index for the service.Sets theisDefaultattribute of the service.Assigns the location URI.Shortcut for assigning the SAML POST binding to the service.protocolBinding(String binding) If the SAML holder-of-key profile is used, theBindingattribute should be assigned "urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser" and the actual binding should be assigned to thehoksso:ProtocolBindingattribute.Shortcut for assigning the SAML Redirect binding to the service.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
AssertionConsumerServiceBuilder
public AssertionConsumerServiceBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<AssertionConsumerService>- Returns:
- the object type
-
location
Assigns the location URI.- Parameters:
location- the URI- Returns:
- the builder
-
binding
Assigns the binding of the service- Parameters:
binding- the binding URI- Returns:
- the builder
- See Also:
-
postBinding
Shortcut for assigning the SAML POST binding to the service.- Returns:
- the builder
- See Also:
-
redirectBinding
Shortcut for assigning the SAML Redirect binding to the service.- Returns:
- the builder
- See Also:
-
protocolBinding
If the SAML holder-of-key profile is used, theBindingattribute should be assigned "urn:oasis:names:tc:SAML:2.0:profiles:holder-of-key:SSO:browser" and the actual binding should be assigned to thehoksso:ProtocolBindingattribute. This method sets thehoksso:ProtocolBindingattribute to the given binding.- Parameters:
binding- the binding URI- Returns:
- this builder
- See Also:
-
hokPostBinding
Shortcut to assign theBindingattribute to Holder-of-key and thehoksso:ProtocolBindingattribute to the POST binding.- Returns:
- this builder
-
hokRedirectBinding
Shortcut to assign theBindingattribute to Holder-of-key and thehoksso:ProtocolBindingattribute to the Redirect binding.- Returns:
- this builder
-
index
Assigns the index for the service.- Parameters:
index- the index- Returns:
- the builder
-
isDefault
Sets theisDefaultattribute of the service.- Parameters:
def- the Boolean- Returns:
- the builder
-