Class SingleSignOnServiceBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<SingleSignOnService>
se.swedenconnect.opensaml.saml2.metadata.build.SingleSignOnServiceBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<SingleSignOnService>
A builder for
SingleSignOnService elements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssigns the binding of the servicestatic SingleSignOnServiceBuilderbuilder()Utility method that creates a builder.protected Class<SingleSignOnService> 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 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
-
SingleSignOnServiceBuilder
public SingleSignOnServiceBuilder()
-
-
Method Details
-
builder
Utility method that creates a builder.- Returns:
- a builder
-
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
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<SingleSignOnService>- Returns:
- the object type
-