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