T
- the type of request messageBUILDER
- the builder typepublic abstract class AbstractRequestBuilder<T extends RequestAbstractType,BUILDER extends AbstractSAMLObjectBuilder<T>> extends AbstractSAMLObjectBuilder<T>
Constructor and Description |
---|
AbstractRequestBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
build()
The default implementation of this method assumes that the object has been built during assignment of its
attributes and elements so it simply returns the object.
|
BUILDER |
consent(String consent)
Assigns the
Consent attribute of the request. |
BUILDER |
destination(String destination)
Assigns the
Destination attribute of the request. |
BUILDER |
extensions(Extensions extensions)
Assigns an
Extensions element to the request. |
protected abstract BUILDER |
getThis()
In order for us to be able to make chaining calls we need to return the concrete type of the builder.
|
BUILDER |
id(String id)
Assigns the
ID attribute of the request. |
BUILDER |
issueInstant(org.joda.time.DateTime instant)
Assigns the issue instant.
|
BUILDER |
issueInstant(LocalDateTime instant)
Assigns the issue instant (using the local time zone).
|
BUILDER |
issuer(Issuer issuer)
Assigns the
Issuer element of the request. |
BUILDER |
issuer(String issuer)
Assigns the
Issuer element of the request by adding an Issuer element having the nameID format
urn:oasis:names:tc:SAML:2.0:nameid-format:entity . |
BUILDER |
version(int major,
int minor)
Assigns the version attribute for the request.
|
BUILDER |
version(String version)
Assigns the version attribute for the request.
|
getObjectType, object
public T build()
Implementations that need to perform additional processing during the build step should override this method.
build
in interface SAMLObjectBuilder<T extends RequestAbstractType>
build
in class AbstractSAMLObjectBuilder<T extends RequestAbstractType>
public BUILDER version(int major, int minor)
If not assigned, the SAMLVersion.VERSION_20
will be assigned as a default.
major
- major versionminor
- minor versionpublic BUILDER version(String version)
If not assigned, the SAMLVersion.VERSION_20
will be assigned as a default.
version
- the versionspublic BUILDER id(String id)
ID
attribute of the request.id
- the IDpublic BUILDER issueInstant(org.joda.time.DateTime instant)
instant
- the issue instantpublic BUILDER issueInstant(LocalDateTime instant)
instant
- the issue instantpublic BUILDER destination(String destination)
Destination
attribute of the request.destination
- the destination URIpublic BUILDER consent(String consent)
Consent
attribute of the request.consent
- the consent stringpublic BUILDER issuer(String issuer)
Issuer
element of the request by adding an Issuer
element having the nameID format
urn:oasis:names:tc:SAML:2.0:nameid-format:entity
.issuer
- the entityID of the issuerissuer(Issuer)
public BUILDER issuer(Issuer issuer)
Issuer
element of the request.issuer
- the issuer (will be cloned before assignment)public BUILDER extensions(Extensions extensions)
Extensions
element to the request.extensions
- the extensions element to addprotected abstract BUILDER getThis()
Copyright © 2018 Litsec AB. All rights reserved.