All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.crypto.asymmetric.key.AsymmetricKeyPairFactorySimple Maven / Gradle / Ivy

package io.github.mmm.crypto.asymmetric.key;

import java.security.PrivateKey;
import java.security.PublicKey;

/**
 * Interface for factory to create instances of {@link AsymmetricKeyPair} from {@link PrivateKey} and
 * {@link PublicKey}. It only provides low-level wrapping functionality. For higher level usage see
 * {@link AsymmetricKeyCreator}.
 *
 * @param  type of {@link PrivateKey}.
 * @param  type of {@link PublicKey}.
 * @param  type of {@link AsymmetricKeyPair}.
 * @since 1.0.0
 */
public interface AsymmetricKeyPairFactorySimple> {

  /**
   * @param privateKey the {@link PrivateKey}.
   * @param publicKey the corresponding {@link PublicKey}.
   * @return the {@link AsymmetricKeyPair}.
   */
  PAIR createKeyPair(PR privateKey, PU publicKey);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy