Interface SecretGenerator<S extends PrivateKey,P extends PublicKey>

All Known Implementing Classes:
RsaSecretGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SecretGenerator<S extends PrivateKey,P extends PublicKey>
The interface for key pair generators.
  • Method Summary

    Modifier and Type
    Method
    Description
    generateKeyPair(int id, long ttl)
    Generates a key pair.
  • Method Details

    • generateKeyPair

      IgniteKeyPair<S,P> generateKeyPair(int id, long ttl)
      Generates a key pair.
      Parameters:
      id - Key id.
      ttl - Time to live in milliseconds.
      Returns:
      Key pair.