Class OidcCookieHandler
java.lang.Object
io.helidon.security.providers.oidc.common.OidcCookieHandler
Handler of cookies used in OIDC.
-
Method Summary
Modifier and TypeMethodDescriptionCookie name.createCookie
(String value) SetCookie
builder to set a new cookie, returns a future, as the value may need to be encrypted using a remote service.Decrypt a cipher text into clear text (if encryption is enabled).findCookie
(Map<String, List<String>> headers) Locate cookie in a map of headers and return its value.SetCookie
builder to remove an existing cookie (such as during logout).
-
Method Details
-
createCookie
SetCookie
builder to set a new cookie, returns a future, as the value may need to be encrypted using a remote service.- Parameters:
value
- value of the cookie- Returns:
- a new builder to configure set cookie configured from OIDC Config
-
cookieName
Cookie name.- Returns:
- name of the cookie to use
-
removeCookie
SetCookie
builder to remove an existing cookie (such as during logout).- Returns:
- a new builder to configure set cookie configured from OIDC Config with expiration set to epoch begin and empty value
-
findCookie
Locate cookie in a map of headers and return its value. If the cookie is encrypted, decrypts the cookie value.- Parameters:
headers
- headers to process- Returns:
- cookie value, or empty if the cookie could not be found
-
decrypt
Decrypt a cipher text into clear text (if encryption is enabled).- Parameters:
cipherText
- cipher text to decrypt- Returns:
- secret
-