Class HvlAuthAuthenticationResponseModel
java.lang.Object
tr.com.havelsan.javarch.oauth.auth.cloud.client.model.HvlAuthAuthenticationResponseModel
- All Implemented Interfaces:
Serializable
A data transfer object is used for authentication response.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The constant EMAIL_ATTRIBUTE_NAME.static final String
The constant MASKED_RECEIVED_IDENTIFIER_ATTRIBUTE_NAME.static final String
The constant PROFILE_ID_ATTRIBUTE_NAME.static final String
The constant SESSION_ID_ATTRIBUTE_NAME.static final String
The constant TOKEN_ATTRIBUTE_NAME.static final String
The constant TWO_FACTOR_AUTHENTICATION_ENABLED_ATTRIBUTE_NAME. -
Constructor Summary
ConstructorDescriptionInstantiates a new HvlAuthAuthenticationResponseModel.HvlAuthAuthenticationResponseModel
(boolean twoFactorAuthenticationEnabled, String email) Instantiates a new HvlAuthAuthenticationResponseModel.HvlAuthAuthenticationResponseModel
(String receivedIdentifier, boolean twoFactorAuthenticationEnabled, String email) Instantiates a new HvlAuthAuthenticationResponseModel.HvlAuthAuthenticationResponseModel
(HvlOAuthUserModel userModel, String token) Instantiates a new HvlAuthAuthenticationResponseModel.HvlAuthAuthenticationResponseModel
(HvlOAuthUserModel userModel, Map<String, Object> attributeMap) Instantiates a new HvlAuthAuthenticationResponseModel. -
Method Summary
Modifier and TypeMethodDescriptionGets attribute map.Gets user model.void
setAttributeMap
(Map<String, Object> attributeMap) Sets attribute map.void
setUserModel
(HvlOAuthUserModel userModel) Sets user model.
-
Field Details
-
TOKEN_ATTRIBUTE_NAME
The constant TOKEN_ATTRIBUTE_NAME.- See Also:
-
SESSION_ID_ATTRIBUTE_NAME
The constant SESSION_ID_ATTRIBUTE_NAME.- See Also:
-
TWO_FACTOR_AUTHENTICATION_ENABLED_ATTRIBUTE_NAME
The constant TWO_FACTOR_AUTHENTICATION_ENABLED_ATTRIBUTE_NAME.- See Also:
-
MASKED_RECEIVED_IDENTIFIER_ATTRIBUTE_NAME
The constant MASKED_RECEIVED_IDENTIFIER_ATTRIBUTE_NAME.- See Also:
-
EMAIL_ATTRIBUTE_NAME
The constant EMAIL_ATTRIBUTE_NAME.- See Also:
-
PROFILE_ID_ATTRIBUTE_NAME
The constant PROFILE_ID_ATTRIBUTE_NAME.- See Also:
-
-
Constructor Details
-
HvlAuthAuthenticationResponseModel
public HvlAuthAuthenticationResponseModel()Instantiates a new HvlAuthAuthenticationResponseModel. -
HvlAuthAuthenticationResponseModel
Instantiates a new HvlAuthAuthenticationResponseModel.- Parameters:
userModel
- the user modeltoken
- the token
-
HvlAuthAuthenticationResponseModel
public HvlAuthAuthenticationResponseModel(HvlOAuthUserModel userModel, Map<String, Object> attributeMap) Instantiates a new HvlAuthAuthenticationResponseModel.- Parameters:
userModel
- the user modelattributeMap
- the attribute map
-
HvlAuthAuthenticationResponseModel
public HvlAuthAuthenticationResponseModel(String receivedIdentifier, boolean twoFactorAuthenticationEnabled, String email) Instantiates a new HvlAuthAuthenticationResponseModel.- Parameters:
receivedIdentifier
- the received identifiertwoFactorAuthenticationEnabled
- the two factor authentication enabledemail
- the email
-
HvlAuthAuthenticationResponseModel
Instantiates a new HvlAuthAuthenticationResponseModel.- Parameters:
twoFactorAuthenticationEnabled
- the two factor authentication enabledemail
- the email
-
-
Method Details
-
getUserModel
Gets user model.- Returns:
- the user model
-
setUserModel
Sets user model.- Parameters:
userModel
- the user model
-
getAttributeMap
Gets attribute map.- Returns:
- the attribute map
-
setAttributeMap
Sets attribute map.- Parameters:
attributeMap
- the attribute map
-