Package sh.ory.hydra.model
Class PreviousConsentSession
- java.lang.Object
-
- sh.ory.hydra.model.PreviousConsentSession
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-01-12T16:13:57.119092Z[GMT]") public class PreviousConsentSession extends Object
The response used to return used consent requests same as HandledLoginRequest, just with consent_request exposed as json
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CONSENT_REQUESTstatic StringSERIALIZED_NAME_GRANT_ACCESS_TOKEN_AUDIENCEstatic StringSERIALIZED_NAME_GRANT_SCOPEstatic StringSERIALIZED_NAME_HANDLED_ATstatic StringSERIALIZED_NAME_REMEMBERstatic StringSERIALIZED_NAME_REMEMBER_FORstatic StringSERIALIZED_NAME_SESSION
-
Constructor Summary
Constructors Constructor Description PreviousConsentSession()
-
Method Summary
Modifier and Type Method Description PreviousConsentSessionaddGrantAccessTokenAudienceItem(String grantAccessTokenAudienceItem)PreviousConsentSessionaddGrantScopeItem(String grantScopeItem)PreviousConsentSessionconsentRequest(ConsentRequest consentRequest)booleanequals(Object o)ConsentRequestgetConsentRequest()Get consentRequestList<String>getGrantAccessTokenAudience()Get grantAccessTokenAudienceList<String>getGrantScope()Get grantScopeorg.threeten.bp.OffsetDateTimegetHandledAt()Get handledAtBooleangetRemember()Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.LonggetRememberFor()RememberFor sets how long the consent authorization should be remembered for in seconds.ConsentRequestSessiongetSession()Get sessionPreviousConsentSessiongrantAccessTokenAudience(List<String> grantAccessTokenAudience)PreviousConsentSessiongrantScope(List<String> grantScope)PreviousConsentSessionhandledAt(org.threeten.bp.OffsetDateTime handledAt)inthashCode()PreviousConsentSessionremember(Boolean remember)PreviousConsentSessionrememberFor(Long rememberFor)PreviousConsentSessionsession(ConsentRequestSession session)voidsetConsentRequest(ConsentRequest consentRequest)voidsetGrantAccessTokenAudience(List<String> grantAccessTokenAudience)voidsetGrantScope(List<String> grantScope)voidsetHandledAt(org.threeten.bp.OffsetDateTime handledAt)voidsetRemember(Boolean remember)voidsetRememberFor(Long rememberFor)voidsetSession(ConsentRequestSession session)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_CONSENT_REQUEST
public static final String SERIALIZED_NAME_CONSENT_REQUEST
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GRANT_ACCESS_TOKEN_AUDIENCE
public static final String SERIALIZED_NAME_GRANT_ACCESS_TOKEN_AUDIENCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_GRANT_SCOPE
public static final String SERIALIZED_NAME_GRANT_SCOPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HANDLED_AT
public static final String SERIALIZED_NAME_HANDLED_AT
- 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_SESSION
public static final String SERIALIZED_NAME_SESSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
consentRequest
public PreviousConsentSession consentRequest(ConsentRequest consentRequest)
-
getConsentRequest
@Nullable public ConsentRequest getConsentRequest()
Get consentRequest- Returns:
- consentRequest
-
setConsentRequest
public void setConsentRequest(ConsentRequest consentRequest)
-
grantAccessTokenAudience
public PreviousConsentSession grantAccessTokenAudience(List<String> grantAccessTokenAudience)
-
addGrantAccessTokenAudienceItem
public PreviousConsentSession addGrantAccessTokenAudienceItem(String grantAccessTokenAudienceItem)
-
getGrantAccessTokenAudience
@Nullable public List<String> getGrantAccessTokenAudience()
Get grantAccessTokenAudience- Returns:
- grantAccessTokenAudience
-
setGrantAccessTokenAudience
public void setGrantAccessTokenAudience(List<String> grantAccessTokenAudience)
-
grantScope
public PreviousConsentSession grantScope(List<String> grantScope)
-
addGrantScopeItem
public PreviousConsentSession addGrantScopeItem(String grantScopeItem)
-
handledAt
public PreviousConsentSession handledAt(org.threeten.bp.OffsetDateTime handledAt)
-
getHandledAt
@Nullable public org.threeten.bp.OffsetDateTime getHandledAt()
Get handledAt- Returns:
- handledAt
-
setHandledAt
public void setHandledAt(org.threeten.bp.OffsetDateTime handledAt)
-
remember
public PreviousConsentSession remember(Boolean remember)
-
getRemember
@Nullable public Boolean getRemember()
Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.- Returns:
- remember
-
setRemember
public void setRemember(Boolean remember)
-
rememberFor
public PreviousConsentSession rememberFor(Long rememberFor)
-
getRememberFor
@Nullable public Long getRememberFor()
RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.- Returns:
- rememberFor
-
setRememberFor
public void setRememberFor(Long rememberFor)
-
session
public PreviousConsentSession session(ConsentRequestSession session)
-
getSession
@Nullable public ConsentRequestSession getSession()
Get session- Returns:
- session
-
setSession
public void setSession(ConsentRequestSession session)
-
-