- java.lang.Object
- 
- io.helidon.security.jwt.EncryptedJwt.Builder
 
- 
- All Implemented Interfaces:
- Builder<EncryptedJwt>,- Supplier<EncryptedJwt>
 - Enclosing class:
- EncryptedJwt
 
 public static class EncryptedJwt.Builder extends Object implements Builder<EncryptedJwt> Encrypted JWT builder.
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptedJwt.Builderalgorithm(EncryptedJwt.SupportedAlgorithm algorithm)Algorithm which should be used as content key encryption.EncryptedJwtbuild()Build the instance from this builder.EncryptedJwt.Builderencryption(EncryptedJwt.SupportedEncryption encryption)Encryption which should be used for content encryption.EncryptedJwt.Builderjwk(Jwk jwk)SpecificJwkwhich should be used for content key encryption.EncryptedJwt.Builderjwks(JwkKeys jwkKeys, String kid)JwkKeyswhich should be searched for key with specific kid.
 
- 
- 
- 
Method Detail- 
jwkspublic EncryptedJwt.Builder jwks(JwkKeys jwkKeys, String kid) 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 keys
- kid- searched kid
- Returns:
- updated builder instance
 
 - 
jwkpublic EncryptedJwt.Builder jwk(Jwk jwk) SpecificJwkwhich should be used for content key encryption. SpecificJwkis required to have private key specified otherwise encryption of the content encryption key will not be possible.- Parameters:
- jwk- specific jwk
- Returns:
- updated builder instance
 
 - 
algorithmpublic EncryptedJwt.Builder algorithm(EncryptedJwt.SupportedAlgorithm algorithm) Algorithm which should be used as content key encryption.- Parameters:
- algorithm- content key encryption
- Returns:
- updated builder instance
 
 - 
encryptionpublic EncryptedJwt.Builder encryption(EncryptedJwt.SupportedEncryption encryption) Encryption which should be used for content encryption.- Parameters:
- encryption- content encryption
- Returns:
- updated builder instance
 
 - 
buildpublic EncryptedJwt build() Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
- buildin interface- Builder<EncryptedJwt>
- Returns:
- instance of the built type
 
 
- 
 
-