@NotThreadSafe public static final class EidasAuthenticationRequest.Builder extends AbstractEidasAuthenticationRequest.AbstractBuilder<EidasAuthenticationRequest.Builder,EidasAuthenticationRequest>
EidasAuthenticationRequest
class.
Effective Java, 2nd Ed. : Item 2: Builder Pattern.
This Builder is not thread-safe but is thread-compliant, it is supposed to be used by only one thread.
Constructor and Description |
---|
Builder() |
Builder(EidasAuthenticationRequest.Builder copy) |
Builder(IEidasAuthenticationRequest copy) |
Modifier and Type | Method and Description |
---|---|
protected EidasAuthenticationRequest |
newInstance()
Method to be implemented by subtypes to create the right type
T of instances. |
protected void |
validateOtherFields()
Validates the state of this Builder before allowing to create new instances of the built type
T . |
levelOfAssurance, levelOfAssuranceComparison, levelOfAssuranceComparison, validate
assertionConsumerServiceURL, binding, build, citizenCountryCode, destination, id, issuer, levelOfAssurance, levelsOfAssurance, lightRequest, nameIdFormat, originalIssuer, originCountryCode, providerName, relayState, requestedAttributes, requesterId, serviceProviderCountryCode, spCountryCode, spType
public Builder()
public Builder(@Nonnull EidasAuthenticationRequest.Builder copy)
public Builder(@Nonnull IEidasAuthenticationRequest copy)
protected void validateOtherFields() throws IllegalArgumentException
AbstractEidasAuthenticationRequest.AbstractBuilder
T
.validateOtherFields
in class AbstractEidasAuthenticationRequest.AbstractBuilder<EidasAuthenticationRequest.Builder,EidasAuthenticationRequest>
IllegalArgumentException
- if the builder is not in a legal state allowing to proceed with the creation
of a T
instance.@Nonnull protected EidasAuthenticationRequest newInstance()
AbstractAuthenticationRequest.AbstractBuilder
T
of instances.
The typical implementation simply consists in writing return new MySubType(this);
newInstance
in class AbstractAuthenticationRequest.AbstractBuilder<EidasAuthenticationRequest.Builder,EidasAuthenticationRequest>
T
instance based on this Builder instance.Copyright © 2020. All Rights Reserved.