Class AssertionConsumerServiceBuilder
- java.lang.Object
-
- se.litsec.opensaml.core.AbstractSAMLObjectBuilder<AssertionConsumerService>
-
- se.litsec.opensaml.saml2.metadata.build.AssertionConsumerServiceBuilder
-
- All Implemented Interfaces:
SAMLObjectBuilder<AssertionConsumerService>
public class AssertionConsumerServiceBuilder extends AbstractSAMLObjectBuilder<AssertionConsumerService>
A builder forAssertionConsumerServiceelements.- Author:
- Martin Lindström (martin.lindstrom@litsec.se)
-
-
Constructor Summary
Constructors Constructor Description AssertionConsumerServiceBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertionConsumerServiceBuilderbinding(String binding)Assigns the binding of the servicestatic AssertionConsumerServiceBuilderbuilder()Utility method that creates a builder.protected Class<AssertionConsumerService>getObjectType()Returns the object type.AssertionConsumerServiceBuilderindex(Integer index)Assigns the index for the service.AssertionConsumerServiceBuilderisDefault(Boolean def)Sets theisDefaultattribute of the service.AssertionConsumerServiceBuilderlocation(String location)Assigns the location URI.AssertionConsumerServiceBuilderpostBinding()Shortcut for assigning the SAML POST binding to the service.AssertionConsumerServiceBuilderredirectBinding()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 AssertionConsumerServiceBuilder builder()
Utility method that creates a builder.- Returns:
- a builder
-
getObjectType
protected Class<AssertionConsumerService> getObjectType()
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<AssertionConsumerService>- Returns:
- the object type
-
location
public AssertionConsumerServiceBuilder location(String location)
Assigns the location URI.- Parameters:
location- the URI- Returns:
- the builder
-
binding
public AssertionConsumerServiceBuilder binding(String binding)
Assigns the binding of the service- Parameters:
binding- the binding URI- Returns:
- the builder
- See Also:
postBinding(),redirectBinding()
-
postBinding
public AssertionConsumerServiceBuilder postBinding()
Shortcut for assigning the SAML POST binding to the service.- Returns:
- the builder
- See Also:
binding(String)
-
redirectBinding
public AssertionConsumerServiceBuilder redirectBinding()
Shortcut for assigning the SAML Redirect binding to the service.- Returns:
- the builder
- See Also:
binding(String)
-
index
public AssertionConsumerServiceBuilder index(Integer index)
Assigns the index for the service.- Parameters:
index- the index- Returns:
- the builder
-
isDefault
public AssertionConsumerServiceBuilder isDefault(Boolean def)
Sets theisDefaultattribute of the service.- Parameters:
def- the Boolean- Returns:
- the builder
-
-