Package sh.ory.hydra.model
Class AcceptLoginRequest
- java.lang.Object
-
- sh.ory.hydra.model.AcceptLoginRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-12T16:13:57.119092Z[GMT]") public class AcceptLoginRequest extends Object
AcceptLoginRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_ACRstatic StringSERIALIZED_NAME_CONTEXTstatic StringSERIALIZED_NAME_FORCE_SUBJECT_IDENTIFIERstatic StringSERIALIZED_NAME_REMEMBERstatic StringSERIALIZED_NAME_REMEMBER_FORstatic StringSERIALIZED_NAME_SUBJECT
-
Constructor Summary
Constructors Constructor Description AcceptLoginRequest()
-
Method Summary
Modifier and Type Method Description AcceptLoginRequestacr(String acr)AcceptLoginRequestcontext(Object context)booleanequals(Object o)AcceptLoginRequestforceSubjectIdentifier(String forceSubjectIdentifier)StringgetAcr()ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session.ObjectgetContext()Get contextStringgetForceSubjectIdentifier()ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated.BooleangetRemember()Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data.LonggetRememberFor()RememberFor sets how long the authentication should be remembered for in seconds.StringgetSubject()Subject is the user ID of the end-user that authenticated.inthashCode()AcceptLoginRequestremember(Boolean remember)AcceptLoginRequestrememberFor(Long rememberFor)voidsetAcr(String acr)voidsetContext(Object context)voidsetForceSubjectIdentifier(String forceSubjectIdentifier)voidsetRemember(Boolean remember)voidsetRememberFor(Long rememberFor)voidsetSubject(String subject)AcceptLoginRequestsubject(String subject)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_ACR
public static final String SERIALIZED_NAME_ACR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTEXT
public static final String SERIALIZED_NAME_CONTEXT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FORCE_SUBJECT_IDENTIFIER
public static final String SERIALIZED_NAME_FORCE_SUBJECT_IDENTIFIER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REMEMBER
public static final String SERIALIZED_NAME_REMEMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_REMEMBER_FOR
public static final String SERIALIZED_NAME_REMEMBER_FOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBJECT
public static final String SERIALIZED_NAME_SUBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
acr
public AcceptLoginRequest acr(String acr)
-
getAcr
@Nullable public String getAcr()
ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.- Returns:
- acr
-
setAcr
public void setAcr(String acr)
-
context
public AcceptLoginRequest context(Object context)
-
setContext
public void setContext(Object context)
-
forceSubjectIdentifier
public AcceptLoginRequest forceSubjectIdentifier(String forceSubjectIdentifier)
-
getForceSubjectIdentifier
@Nullable public String getForceSubjectIdentifier()
ForceSubjectIdentifier forces the \"pairwise\" user ID of the end-user that authenticated. The \"pairwise\" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject (\"user\") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail.- Returns:
- forceSubjectIdentifier
-
setForceSubjectIdentifier
public void setForceSubjectIdentifier(String forceSubjectIdentifier)
-
remember
public AcceptLoginRequest remember(Boolean remember)
-
getRemember
@Nullable public Boolean getRemember()
Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again.- Returns:
- remember
-
setRemember
public void setRemember(Boolean remember)
-
rememberFor
public AcceptLoginRequest rememberFor(Long rememberFor)
-
getRememberFor
@Nullable public Long getRememberFor()
RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the authorization will be remembered for the duration of the browser session (using a session cookie).- Returns:
- rememberFor
-
setRememberFor
public void setRememberFor(Long rememberFor)
-
subject
public AcceptLoginRequest subject(String subject)
-
getSubject
public String getSubject()
Subject is the user ID of the end-user that authenticated.- Returns:
- subject
-
setSubject
public void setSubject(String subject)
-
-