-
public final class WebPushHybridEncrypt.BuilderBuilder for WebPushHybridEncrypt.
-
-
Constructor Summary
Constructors Constructor Description WebPushHybridEncrypt.Builder()
-
Method Summary
Modifier and Type Method Description WebPushHybridEncrypt.BuilderwithRecordSize(int val)Sets the record size. WebPushHybridEncrypt.BuilderwithPaddingSize(int val)Sets the padding size which is default to 0. WebPushHybridEncrypt.BuilderwithAuthSecret(Array<byte> val)Sets the authentication secret. WebPushHybridEncrypt.BuilderwithRecipientPublicKey(ECPublicKey val)Sets the public key of the recipient. WebPushHybridEncrypt.BuilderwithRecipientPublicKey(Array<byte> val)Sets the public key of the recipient. WebPushHybridEncryptbuild()-
-
Method Detail
-
withRecordSize
@CanIgnoreReturnValue() WebPushHybridEncrypt.Builder withRecordSize(int val)
-
withPaddingSize
@CanIgnoreReturnValue() WebPushHybridEncrypt.Builder withPaddingSize(int val)
Sets the padding size which is default to 0.
The padding size cannot be larger than
-
withAuthSecret
@CanIgnoreReturnValue() WebPushHybridEncrypt.Builder withAuthSecret(Array<byte> val)
Sets the authentication secret.
-
withRecipientPublicKey
@CanIgnoreReturnValue() WebPushHybridEncrypt.Builder withRecipientPublicKey(ECPublicKey val)
Sets the public key of the recipient.
-
withRecipientPublicKey
@CanIgnoreReturnValue() WebPushHybridEncrypt.Builder withRecipientPublicKey(Array<byte> val)
Sets the public key of the recipient.
The public key must be formatted as an uncompressed point format, i.e., it has
{@code 65}bytes and the first byte must be{@code 0x04}.
-
build
WebPushHybridEncrypt build()
-
-
-
-