Class SingleSignOnServiceBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<SingleSignOnService>
-
- se.litsec.opensaml.saml2.metadata.build.SingleSignOnServiceBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<SingleSignOnService>
public class SingleSignOnServiceBuilder extends AbstractSAMLObjectBuilder<SingleSignOnService>
A builder forSingleSignOnService
elements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description SingleSignOnServiceBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleSignOnServiceBuilder
binding(String binding)
Assigns the binding of the servicestatic SingleSignOnServiceBuilder
builder()
Utility method that creates a builder.protected Class<SingleSignOnService>
getObjectType()
Returns the object type.SingleSignOnServiceBuilder
location(String location)
Assigns the location URI.SingleSignOnServiceBuilder
postBinding()
Shortcut for assigning the SAML POST binding to the service.SingleSignOnServiceBuilder
redirectBinding()
Shortcut for assigning the SAML Redirect binding to the service.-
Methods inherited from class se.litsec.opensaml.core.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
-
-
-
Method Detail
-
builder
public static SingleSignOnServiceBuilder builder()
Utility method that creates a builder.- Returns:
- a builder
-
location
public SingleSignOnServiceBuilder location(String location)
Assigns the location URI.- Parameters:
location
- the URI- Returns:
- the builder
-
binding
public SingleSignOnServiceBuilder binding(String binding)
Assigns the binding of the service- Parameters:
binding
- the binding URI- Returns:
- the builder
- See Also:
postBinding()
,redirectBinding()
-
postBinding
public SingleSignOnServiceBuilder postBinding()
Shortcut for assigning the SAML POST binding to the service.- Returns:
- the builder
- See Also:
binding(String)
-
redirectBinding
public SingleSignOnServiceBuilder redirectBinding()
Shortcut for assigning the SAML Redirect binding to the service.- Returns:
- the builder
- See Also:
binding(String)
-
getObjectType
protected Class<SingleSignOnService> getObjectType()
Returns the object type.- Specified by:
getObjectType
in classAbstractSAMLObjectBuilder<SingleSignOnService>
- Returns:
- the object type
-
-