Interface SignatureSpecService

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • defaultSignatureSpec

        @Suspendable()@Nullable() abstract SignatureSpec defaultSignatureSpec(@NotNull() PublicKey publicKey)

        Works out a default signature spec for specified public key, given current security policies.

        Parameters:
        publicKey - The public key to be used for signing.
        Returns:

        An appropriate SignatureSpec, or null if nothing is available for the key type.

      • defaultSignatureSpec

        @Suspendable()@Nullable() abstract SignatureSpec defaultSignatureSpec(@NotNull() PublicKey publicKey, @NotNull() DigestAlgorithmName digestAlgorithmName)

        Works out a default signature spec for specified public key and digest algorithm given current security policies.

        Parameters:
        publicKey - The public key to be used for signing.
        digestAlgorithmName - The digest algorithm to use, for example, SHA2_256.
        Returns:

        An appropriate SignatureSpec, or null if nothing is available for the key type.

      • compatibleSignatureSpecs

        @Suspendable()@NotNull() abstract List<SignatureSpec> compatibleSignatureSpecs(@NotNull() PublicKey publicKey, @NotNull() DigestAlgorithmName digestAlgorithmName)

        Returns compatible signature specs for specified public key and digest algorithm, given current security policies.

        Parameters:
        publicKey - The public key to be used for signing.
        digestAlgorithmName - The digest algorithm to use, for example, [DigestAlgorithmName.SHA2_256].