Interface GordianCipherParamsBuilder
public interface GordianCipherParamsBuilder
Cipher Parameters Builder.
-
Method Summary
Modifier and TypeMethodDescriptionaeadAndNonce(GordianKey<T> pKey, byte[] pInitialAEAD, byte[] pNonce) Obtain aeadAndNonce Parameters.aeadWithRandomNonce(GordianKey<T> pKey, byte[] pInitialAEAD) Obtain aeadAndRandomNonce Parameters.<T extends GordianKeySpec>
GordianCipherParams.GordianKeyCipherParameters<T> key(GordianKey<T> pKey) Obtain keySpec Parameters.<T extends GordianKeySpec>
GordianCipherParams.GordianKeyCipherParameters<T> keyAndNonce(GordianKey<T> pKey, byte[] pNonce) Obtain keyAndNonce Parameters.<T extends GordianKeySpec>
GordianCipherParams.GordianKeyCipherParameters<T> keyWithRandomNonce(GordianKey<T> pKey) Obtain keyAndRandomNonce Parameters.pbe(GordianPBESpec pPBESpec, char[] pPassword) Obtain pbe Parameters.pbeAndNonce(GordianPBESpec pPBESpec, char[] pPassword, byte[] pNonce) Obtain pneAndNonce Parameters.
-
Method Details
-
key
<T extends GordianKeySpec> GordianCipherParams.GordianKeyCipherParameters<T> key(GordianKey<T> pKey) Obtain keySpec Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the key- Returns:
- the keySpec
-
keyAndNonce
<T extends GordianKeySpec> GordianCipherParams.GordianKeyCipherParameters<T> keyAndNonce(GordianKey<T> pKey, byte[] pNonce) Obtain keyAndNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the keypNonce- the nonce- Returns:
- the keySpec
-
keyWithRandomNonce
<T extends GordianKeySpec> GordianCipherParams.GordianKeyCipherParameters<T> keyWithRandomNonce(GordianKey<T> pKey) Obtain keyAndRandomNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the key- Returns:
- the keySpec
-
aeadAndNonce
<T extends GordianKeySpec> GordianCipherParams.GordianAEADCipherParameters<T> aeadAndNonce(GordianKey<T> pKey, byte[] pInitialAEAD, byte[] pNonce) Obtain aeadAndNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the keypInitialAEAD- the initialAEADpNonce- the nonce- Returns:
- the keySpec
-
aeadWithRandomNonce
<T extends GordianKeySpec> GordianCipherParams.GordianAEADCipherParameters<T> aeadWithRandomNonce(GordianKey<T> pKey, byte[] pInitialAEAD) Obtain aeadAndRandomNonce Parameters.- Type Parameters:
T- the keyType- Parameters:
pKey- the keypInitialAEAD- the initialAEAD- Returns:
- the keySpec
-
pbe
Obtain pbe Parameters.- Parameters:
pPBESpec- the pbeSpecpPassword- the password- Returns:
- the keySpec
-
pbeAndNonce
GordianCipherParams.GordianPBECipherParameters pbeAndNonce(GordianPBESpec pPBESpec, char[] pPassword, byte[] pNonce) Obtain pneAndNonce Parameters.- Parameters:
pPBESpec- the pbeSpecpPassword- the passwordpNonce- the nonce- Returns:
- the keySpec
-