public static final class AesCtrHmacStreamingParameters.Builder extends Object
AesCtrHmacStreamingParameters objects..| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AesCtrHmacStreamingParameters |
build()
Checks restrictions as on the devsite
|
AesCtrHmacStreamingParameters.Builder |
setCiphertextSegmentSizeBytes(int ciphertextSegmentSizeBytes)
Sets the size of a segment.
|
AesCtrHmacStreamingParameters.Builder |
setDerivedKeySizeBytes(int derivedKeySizeBytes)
Sets the size of the AES GCM key which will internally be derived.
|
AesCtrHmacStreamingParameters.Builder |
setHkdfHashType(AesCtrHmacStreamingParameters.HashType hkdfHashType)
Sets the type of the hash function used in HKDF.
|
AesCtrHmacStreamingParameters.Builder |
setHmacHashType(AesCtrHmacStreamingParameters.HashType hmacHashType)
Sets the type of the hash function used in the HMAC.
|
AesCtrHmacStreamingParameters.Builder |
setHmacTagSizeBytes(Integer hmacTagSizeBytes)
Sets the size of the Hmac tag used.
|
AesCtrHmacStreamingParameters.Builder |
setKeySizeBytes(int keySizeBytes)
Sets the size of the initial key material (used as input to HKDF).
|
@CanIgnoreReturnValue public AesCtrHmacStreamingParameters.Builder setKeySizeBytes(int keySizeBytes)
Must be at least 16, and at least equal to the value set in setDerivedKeySizeBytes(int)
@CanIgnoreReturnValue public AesCtrHmacStreamingParameters.Builder setDerivedKeySizeBytes(int derivedKeySizeBytes)
Must be 16 or 32.
@CanIgnoreReturnValue public AesCtrHmacStreamingParameters.Builder setHkdfHashType(AesCtrHmacStreamingParameters.HashType hkdfHashType)
@CanIgnoreReturnValue public AesCtrHmacStreamingParameters.Builder setHmacHashType(AesCtrHmacStreamingParameters.HashType hmacHashType)
@CanIgnoreReturnValue public AesCtrHmacStreamingParameters.Builder setHmacTagSizeBytes(Integer hmacTagSizeBytes)
@CanIgnoreReturnValue public AesCtrHmacStreamingParameters.Builder setCiphertextSegmentSizeBytes(int ciphertextSegmentSizeBytes)
Must be at least equal 24 plus the value set in setDerivedKeySizeBytes(int), and less
than 2^31.
public AesCtrHmacStreamingParameters build() throws GeneralSecurityException
GeneralSecurityException