Interface SymmetricKeyAlgorithmNegotiator
-
public interface SymmetricKeyAlgorithmNegotiator
Interface for symmetric key algorithm negotiation.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static SymmetricKeyAlgorithmNegotiator
byPopularity()
SymmetricKeyAlgorithm
negotiate(Policy.SymmetricKeyAlgorithmPolicy policy, SymmetricKeyAlgorithm override, List<Set<SymmetricKeyAlgorithm>> keyPreferences)
Negotiate a symmetric encryption algorithm.
-
-
-
Method Detail
-
negotiate
SymmetricKeyAlgorithm negotiate(Policy.SymmetricKeyAlgorithmPolicy policy, SymmetricKeyAlgorithm override, List<Set<SymmetricKeyAlgorithm>> keyPreferences)
Negotiate a symmetric encryption algorithm.- Parameters:
policy
- algorithm policyoverride
- algorithm override (if not null, return this)keyPreferences
- list of preferences per key- Returns:
- negotiated algorithm
-
byPopularity
static SymmetricKeyAlgorithmNegotiator byPopularity()
-
-