congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
KeyAgreementSpi.engineInit
Code IndexAdd Tabnine to your IDE (free)

How to use
engineInit
method
in
javax.crypto.KeyAgreementSpi

Best Java code snippets using javax.crypto.KeyAgreementSpi.engineInit (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * Initializes this {@code KeyAgreement} with the specified key.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key) throws InvalidKeyException {
  spiImpl.engineInit(key, RANDOM);//new SecureRandom());
}
origin: robovm/robovm

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * specified randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key, SecureRandom random)
    throws InvalidKeyException {
  spiImpl.engineInit(key, random);
}
origin: robovm/robovm

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * algorithm parameters.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param params
 *            the parameters for this key agreement algorithm.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 * @throws InvalidAlgorithmParameterException
 *             if the specified parameters are invalid for this key
 *             agreement algorithm.
 */
public final void init(Key key, AlgorithmParameterSpec params)
    throws InvalidKeyException, InvalidAlgorithmParameterException {
  spiImpl.engineInit(key, params, RANDOM);//new SecureRandom());
}
origin: robovm/robovm

/**
 * Initializes this {@code KeyAgreement} with the specified key, algorithm
 * parameters and randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param params
 *            the parameters for this key agreement algorithm.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 * @throws InvalidAlgorithmParameterException
 *             if the specified parameters are invalid for this key
 *             agreement algorithm.
 */
public final void init(Key key, AlgorithmParameterSpec params,
    SecureRandom random) throws InvalidKeyException,
    InvalidAlgorithmParameterException {
  spiImpl.engineInit(key, params, random);
}
origin: MobiVM/robovm

/**
 * Initializes this {@code KeyAgreement} with the specified key.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key) throws InvalidKeyException {
  spiImpl.engineInit(key, RANDOM);//new SecureRandom());
}
origin: ibinti/bugvm

/**
 * Initializes this {@code KeyAgreement} with the specified key.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key) throws InvalidKeyException {
  spiImpl.engineInit(key, RANDOM);//new SecureRandom());
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key) throws InvalidKeyException {
  spiImpl.engineInit(key, RANDOM);//new SecureRandom());
}
origin: com.bugvm/bugvm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key) throws InvalidKeyException {
  spiImpl.engineInit(key, RANDOM);//new SecureRandom());
}
origin: com.gluonhq/robovm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key) throws InvalidKeyException {
  spiImpl.engineInit(key, RANDOM);//new SecureRandom());
}
origin: FlexoVM/flexovm

/**
 * Initializes this {@code KeyAgreement} with the specified key.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key) throws InvalidKeyException {
  spiImpl.engineInit(key, RANDOM);//new SecureRandom());
}
origin: MobiVM/robovm

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * specified randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key, SecureRandom random)
    throws InvalidKeyException {
  spiImpl.engineInit(key, random);
}
origin: com.gluonhq/robovm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * specified randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key, SecureRandom random)
    throws InvalidKeyException {
  spiImpl.engineInit(key, random);
}
origin: FlexoVM/flexovm

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * specified randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key, SecureRandom random)
    throws InvalidKeyException {
  spiImpl.engineInit(key, random);
}
origin: ibinti/bugvm

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * specified randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key, SecureRandom random)
    throws InvalidKeyException {
  spiImpl.engineInit(key, random);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * specified randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key, SecureRandom random)
    throws InvalidKeyException {
  spiImpl.engineInit(key, random);
}
origin: com.bugvm/bugvm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * specified randomness source.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param random
 *            the source for any randomness needed.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 */
public final void init(Key key, SecureRandom random)
    throws InvalidKeyException {
  spiImpl.engineInit(key, random);
}
origin: ibinti/bugvm

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * algorithm parameters.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param params
 *            the parameters for this key agreement algorithm.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 * @throws InvalidAlgorithmParameterException
 *             if the specified parameters are invalid for this key
 *             agreement algorithm.
 */
public final void init(Key key, AlgorithmParameterSpec params)
    throws InvalidKeyException, InvalidAlgorithmParameterException {
  spiImpl.engineInit(key, params, RANDOM);//new SecureRandom());
}
origin: com.bugvm/bugvm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * algorithm parameters.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param params
 *            the parameters for this key agreement algorithm.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 * @throws InvalidAlgorithmParameterException
 *             if the specified parameters are invalid for this key
 *             agreement algorithm.
 */
public final void init(Key key, AlgorithmParameterSpec params)
    throws InvalidKeyException, InvalidAlgorithmParameterException {
  spiImpl.engineInit(key, params, RANDOM);//new SecureRandom());
}
origin: MobiVM/robovm

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * algorithm parameters.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param params
 *            the parameters for this key agreement algorithm.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 * @throws InvalidAlgorithmParameterException
 *             if the specified parameters are invalid for this key
 *             agreement algorithm.
 */
public final void init(Key key, AlgorithmParameterSpec params)
    throws InvalidKeyException, InvalidAlgorithmParameterException {
  spiImpl.engineInit(key, params, RANDOM);//new SecureRandom());
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Initializes this {@code KeyAgreement} with the specified key and the
 * algorithm parameters.
 *
 * @param key
 *            the key to initialize this key agreement.
 * @param params
 *            the parameters for this key agreement algorithm.
 * @throws InvalidKeyException
 *             if the specified key cannot be used to initialize this key
 *             agreement.
 * @throws InvalidAlgorithmParameterException
 *             if the specified parameters are invalid for this key
 *             agreement algorithm.
 */
public final void init(Key key, AlgorithmParameterSpec params)
    throws InvalidKeyException, InvalidAlgorithmParameterException {
  spiImpl.engineInit(key, params, RANDOM);//new SecureRandom());
}
javax.cryptoKeyAgreementSpiengineInit

Javadoc

Initializes this KeyAgreementSpi with the specified key and the specified randomness source.

Popular methods of KeyAgreementSpi

  • engineDoPhase
    Does the next (or the last) phase of the key agreement, using the specified key.
  • engineGenerateSecret
    Generates the shared secret and stores it into the buffer sharedSecred at offset.

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now