Module iu.util.crypt
Package edu.iu.crypt
Interface WebEncryptionRecipient.Builder<B extends WebEncryptionRecipient.Builder<B>>
- Type Parameters:
B- builder type
- All Superinterfaces:
WebCryptoHeader.Builder<B>
- All Known Implementing Classes:
JweRecipientBuilder
- Enclosing interface:
WebEncryptionRecipient
public static interface WebEncryptionRecipient.Builder<B extends WebEncryptionRecipient.Builder<B>>
extends WebCryptoHeader.Builder<B>
Builder interface for defining
WebEncryptionRecipient instances.-
Method Summary
Modifier and TypeMethodDescriptiondefault WebEncryptionencrypt(byte[] data) Shorthand forthen().encrypt(data)default WebEncryptionencrypt(InputStream in) Shorthand forthen().encrypt(in)default WebEncryptionShorthand forthen().encrypt(text)then()Returns theWebEncryption.Builderthat spawned this builder instance.Methods inherited from interface edu.iu.crypt.WebCryptoHeader.Builder
contentType, crit, key, keyId, param, param, type, wellKnown, wellKnown
-
Method Details
-
then
WebEncryption.Builder then()Returns theWebEncryption.Builderthat spawned this builder instance.- Returns:
WebEncryption.Builder
-
encrypt
Shorthand forthen().encrypt(text)- Parameters:
text- data to encrypt- Returns:
- encrypted message
-
encrypt
Shorthand forthen().encrypt(data)- Parameters:
data- data to encrypt- Returns:
- encrypted message
-
encrypt
Shorthand forthen().encrypt(in)- Parameters:
in- stream of data to encrypt- Returns:
- encrypted message
-