public final class CookieExpiration extends Object
| Constructor and Description |
|---|
CookieExpiration() |
| Modifier and Type | Method and Description |
|---|---|
CookieExpirationConvention |
convention()
Get the convention property: The convention used when determining the session cookie's expiration.
|
String |
timeToExpiration()
Get the timeToExpiration property: The time after the request is made when the session cookie should expire.
|
void |
validate()
Validates the instance.
|
CookieExpiration |
withConvention(CookieExpirationConvention convention)
Set the convention property: The convention used when determining the session cookie's expiration.
|
CookieExpiration |
withTimeToExpiration(String timeToExpiration)
Set the timeToExpiration property: The time after the request is made when the session cookie should expire.
|
public CookieExpirationConvention convention()
public CookieExpiration withConvention(CookieExpirationConvention convention)
convention - the convention value to set.public String timeToExpiration()
public CookieExpiration withTimeToExpiration(String timeToExpiration)
timeToExpiration - the timeToExpiration value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.