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