Class AssertionConsumerServiceBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.AssertionConsumerService>
se.swedenconnect.opensaml.saml2.metadata.build.AssertionConsumerServiceBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<org.opensaml.saml.saml2.metadata.AssertionConsumerService>
public class AssertionConsumerServiceBuilder
extends AbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.AssertionConsumerService>
A builder for
AssertionConsumerService
elements.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAssigns the binding of the servicebuilder()
Utility method that creates a builder.protected Class
<org.opensaml.saml.saml2.metadata.AssertionConsumerService> Returns the object type.Shortcut to assign theBinding
attribute to Holder-of-key and thehoksso:ProtocolBinding
attribute to the POST binding.Shortcut to assign theBinding
attribute to Holder-of-key and thehoksso:ProtocolBinding
attribute to the Redirect binding.Assigns the index for the service.Sets theisDefault
attribute 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, theBinding
attribute 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:ProtocolBinding
attribute.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:
getObjectType
in classAbstractSAMLObjectBuilder<org.opensaml.saml.saml2.metadata.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, theBinding
attribute 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:ProtocolBinding
attribute. This method sets thehoksso:ProtocolBinding
attribute to the given binding.- Parameters:
binding
- the binding URI- Returns:
- this builder
- See Also:
-
hokPostBinding
Shortcut to assign theBinding
attribute to Holder-of-key and thehoksso:ProtocolBinding
attribute to the POST binding.- Returns:
- this builder
-
hokRedirectBinding
Shortcut to assign theBinding
attribute to Holder-of-key and thehoksso:ProtocolBinding
attribute to the Redirect binding.- Returns:
- this builder
-
index
Assigns the index for the service.- Parameters:
index
- the index- Returns:
- the builder
-
isDefault
Sets theisDefault
attribute of the service.- Parameters:
def
- the Boolean- Returns:
- the builder
-