Class SignedCookieSessionStore.Builder
java.lang.Object
org.apache.juneau.rest.server.auth.oidc.rp.SignedCookieSessionStore.Builder
- Enclosing class:
- SignedCookieSessionStore
Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the store.Overrides the clock used for expiry comparisons.maxCookieBytes(int value) Sets the maximum serialized cookie size in bytes.signingKey(byte[] value) Sets the HMAC signing key bytes.signingKey(String value) Sets the HMAC signing key from a string (UTF-8 encoded).
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
signingKey
Sets the HMAC signing key from a string (UTF-8 encoded). Required.- Parameters:
value- The signing key. Must be at least 32 bytes (256 bits) when UTF-8 encoded.- Returns:
- This object.
-
signingKey
Sets the HMAC signing key bytes. Required.- Parameters:
value- The signing key. Must be at least 32 bytes (256 bits).- Returns:
- This object.
-
maxCookieBytes
Sets the maximum serialized cookie size in bytes.- Parameters:
value- The cap. Must be positive.- Returns:
- This object.
-
clock
Overrides the clock used for expiry comparisons. Useful in tests.- Parameters:
value- The clock. Must not benull .- Returns:
- This object.
-
build
Builds the store.- Returns:
- A new
SignedCookieSessionStore.
-