public abstract class AbstractLightRequest extends Object implements ILightRequest, Serializable
ILightRequest
interface.
This class uses the Builder Pattern.
Implementors of the ILightRequest
should extend this class and its Builder.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractLightRequest.AbstractBuilder<B extends AbstractLightRequest.AbstractBuilder<B,T>,T extends ILightRequest>
Abstract Builder pattern with self-bounding generics for
ILightRequest subtypes. |
Modifier | Constructor and Description |
---|---|
protected |
AbstractLightRequest(AbstractLightRequest.AbstractBuilder<?,?> builder) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCitizenCountryCode()
Returns the 2-letter country code as defined in ISO 3166 of the country where the citizen must authenticate.
|
String |
getId()
Returns the Request ID.
|
String |
getIssuer()
Returns the issuer of this request.
|
String |
getLevelOfAssurance()
Returns the first requested Level of Assurance (LoA) value for the authentication to be performed.
|
List<ILevelOfAssurance> |
getLevelsOfAssurance()
Returns the list of requested Levels of Assurance for the authentication to be performed.
|
String |
getNameIdFormat()
Returns the NameIdFormat (optional).
|
String |
getProviderName()
Returns the provider name (optional).
|
String |
getRelayState()
Returns the the RelayState sent with saml post/redirect binding
|
ImmutableAttributeMap |
getRequestedAttributes()
Returns the requested attributes.
|
String |
getRequesterId()
Returns the Requester Id (optional)
|
String |
getSpCountryCode()
Returns the country code of SP (optional).
|
String |
getSpType()
Returns the type of SP (optional).
|
int |
hashCode() |
String |
toString() |
protected StringBuilder |
toString(StringBuilder stringBuilder) |
static StringBuilder |
toString(StringBuilder stringBuilder,
ILightRequest request) |
protected AbstractLightRequest(@Nonnull AbstractLightRequest.AbstractBuilder<?,?> builder)
public final String getCitizenCountryCode()
ILightRequest
getCitizenCountryCode
in interface ILightRequest
@Nonnull public final String getId()
ILightRequest
This is the unique ID of the request which permits to correlate this request to its corresponding response.
getId
in interface ILightRequest
@Nonnull public final String getIssuer()
ILightRequest
getIssuer
in interface ILightRequest
@Nullable public final String getLevelOfAssurance()
ILightRequest
getLevelOfAssurance
in interface ILightRequest
public final List<ILevelOfAssurance> getLevelsOfAssurance()
ILightRequest
getLevelsOfAssurance
in interface ILightRequest
@Nullable public final String getNameIdFormat()
ILightRequest
This attribute must be transported from the Connector to the IdP if it has an impact on how the attribute values are returned.
getNameIdFormat
in interface ILightRequest
null
.@Nullable public final String getProviderName()
ILightRequest
getProviderName
in interface ILightRequest
null
.@Nullable public final String getSpType()
ILightRequest
getSpType
in interface ILightRequest
null
.@Nullable public final String getSpCountryCode()
ILightRequest
getSpCountryCode
in interface ILightRequest
null
.@Nullable public final String getRequesterId()
ILightRequest
getRequesterId
in interface ILightRequest
null
@Nullable public final String getRelayState()
ILightRequest
getRelayState
in interface ILightRequest
@Nonnull public final ImmutableAttributeMap getRequestedAttributes()
ILightRequest
getRequestedAttributes
in interface ILightRequest
protected StringBuilder toString(@Nonnull StringBuilder stringBuilder)
public static StringBuilder toString(@Nonnull StringBuilder stringBuilder, @Nonnull ILightRequest request)
Copyright © 2020. All Rights Reserved.