Class EncryptedJwt.Builder
java.lang.Object
io.helidon.security.jwt.EncryptedJwt.Builder
- All Implemented Interfaces:
Builder<EncryptedJwt.Builder, EncryptedJwt>, Supplier<EncryptedJwt>
- Enclosing class:
EncryptedJwt
public static class EncryptedJwt.Builder
extends Object
implements Builder<EncryptedJwt.Builder, EncryptedJwt>
Encrypted JWT builder.
-
Method Summary
Modifier and TypeMethodDescriptionalgorithm(EncryptedJwt.SupportedAlgorithm algorithm) Algorithm which should be used as content key encryption.build()Build the instance from this builder.encryption(EncryptedJwt.SupportedEncryption encryption) Encryption which should be used for content encryption.SpecificJwkwhich should be used for content key encryption.JwkKeyswhich should be searched for key with specific kid.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault EncryptedJwtget()default EncryptedJwt.Builderidentity()Instance of this builder as the correct type.default EncryptedJwt.Builderupdate(Consumer<EncryptedJwt.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
jwks
JwkKeyswhich should be searched for key with specific kid. This key will be used for content key encryption. SelectedJwkis required to have private key specified otherwise encryption of the content encryption key will not be possible.- Parameters:
jwkKeys- jwk keyskid- searched kid- Returns:
- updated builder instance
-
jwk
-
algorithm
Algorithm which should be used as content key encryption.- Parameters:
algorithm- content key encryption- Returns:
- updated builder instance
-
encryption
Encryption which should be used for content encryption.- Parameters:
encryption- content encryption- Returns:
- updated builder instance
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<EncryptedJwt.Builder, EncryptedJwt>- Returns:
- instance of the built type
-