Interface HashAlgorithmNegotiator


  • public interface HashAlgorithmNegotiator
    Interface for a class that negotiates HashAlgorithms. You can provide your own implementation using custom logic by implementing the negotiateHashAlgorithm(Set) method.
    • Method Detail

      • negotiateHashAlgorithm

        HashAlgorithm negotiateHashAlgorithm​(java.util.Set<HashAlgorithm> orderedHashAlgorithmPreferencesSet)
        Pick one HashAlgorithm from the ordered set of acceptable algorithms.
        Parameters:
        orderedHashAlgorithmPreferencesSet - hash algorithm preferences
        Returns:
        picked algorithms
      • negotiateSignatureHashAlgorithm

        static HashAlgorithmNegotiator negotiateSignatureHashAlgorithm​(Policy policy)
        Return an instance that negotiates HashAlgorithms used for non-revocation signatures based on the given Policy.
        Parameters:
        policy - algorithm policy
        Returns:
        negotiator
      • negotiateRevocationSignatureAlgorithm

        static HashAlgorithmNegotiator negotiateRevocationSignatureAlgorithm​(Policy policy)
        Return an instance that negotiates HashAlgorithms used for revocation signatures based on the given Policy.
        Parameters:
        policy - algorithm policy
        Returns:
        negotiator