Tabnine Logo
KeyAgreementSpi.engineGenerateSecret
Code IndexAdd Tabnine to your IDE (free)

How to use
engineGenerateSecret
method
in
javax.crypto.KeyAgreementSpi

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

origin: robovm/robovm

/**
 * Generates the shared secret.
 *
 * @return the generated shared secret.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 */
public final byte[] generateSecret() throws IllegalStateException {
  return spiImpl.engineGenerateSecret();
}
origin: robovm/robovm

/**
 * Generates the shared secret and stores it into the buffer {@code
 * sharedSecred} at {@code offset}.
 *
 * @param sharedSecret
 *            the buffer to store the shared secret.
 * @param offset
 *            the offset in the buffer.
 * @return the number of bytes stored in the buffer.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws ShortBufferException
 *             if the specified buffer is too small for the shared secret.
 */
public final int generateSecret(byte[] sharedSecret, int offset)
    throws IllegalStateException, ShortBufferException {
  return spiImpl.engineGenerateSecret(sharedSecret, offset);
}
origin: robovm/robovm

/**
 * Generates the shared secret.
 *
 * @param algorithm
 *            the algorithm to for the {@code SecretKey}
 * @return the shared secret as a {@code SecretKey} of the specified
 *         algorithm.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws NoSuchAlgorithmException
 *             if the specified algorithm for the secret key does not
 *             exists.
 * @throws InvalidKeyException
 *             if a {@code SecretKey} with the specified algorithm cannot be
 *             created using the generated shared secret.
 */
public final SecretKey generateSecret(String algorithm)
    throws IllegalStateException, NoSuchAlgorithmException,
    InvalidKeyException {
  return spiImpl.engineGenerateSecret(algorithm);
}
origin: com.gluonhq/robovm-rt

/**
 * Generates the shared secret.
 *
 * @return the generated shared secret.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 */
public final byte[] generateSecret() throws IllegalStateException {
  return spiImpl.engineGenerateSecret();
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Generates the shared secret.
 *
 * @return the generated shared secret.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 */
public final byte[] generateSecret() throws IllegalStateException {
  return spiImpl.engineGenerateSecret();
}
origin: com.bugvm/bugvm-rt

/**
 * Generates the shared secret.
 *
 * @return the generated shared secret.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 */
public final byte[] generateSecret() throws IllegalStateException {
  return spiImpl.engineGenerateSecret();
}
origin: MobiVM/robovm

/**
 * Generates the shared secret.
 *
 * @return the generated shared secret.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 */
public final byte[] generateSecret() throws IllegalStateException {
  return spiImpl.engineGenerateSecret();
}
origin: FlexoVM/flexovm

/**
 * Generates the shared secret.
 *
 * @return the generated shared secret.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 */
public final byte[] generateSecret() throws IllegalStateException {
  return spiImpl.engineGenerateSecret();
}
origin: ibinti/bugvm

/**
 * Generates the shared secret.
 *
 * @return the generated shared secret.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 */
public final byte[] generateSecret() throws IllegalStateException {
  return spiImpl.engineGenerateSecret();
}
origin: ibinti/bugvm

/**
 * Generates the shared secret and stores it into the buffer {@code
 * sharedSecred} at {@code offset}.
 *
 * @param sharedSecret
 *            the buffer to store the shared secret.
 * @param offset
 *            the offset in the buffer.
 * @return the number of bytes stored in the buffer.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws ShortBufferException
 *             if the specified buffer is too small for the shared secret.
 */
public final int generateSecret(byte[] sharedSecret, int offset)
    throws IllegalStateException, ShortBufferException {
  return spiImpl.engineGenerateSecret(sharedSecret, offset);
}
origin: MobiVM/robovm

/**
 * Generates the shared secret and stores it into the buffer {@code
 * sharedSecred} at {@code offset}.
 *
 * @param sharedSecret
 *            the buffer to store the shared secret.
 * @param offset
 *            the offset in the buffer.
 * @return the number of bytes stored in the buffer.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws ShortBufferException
 *             if the specified buffer is too small for the shared secret.
 */
public final int generateSecret(byte[] sharedSecret, int offset)
    throws IllegalStateException, ShortBufferException {
  return spiImpl.engineGenerateSecret(sharedSecret, offset);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Generates the shared secret and stores it into the buffer {@code
 * sharedSecred} at {@code offset}.
 *
 * @param sharedSecret
 *            the buffer to store the shared secret.
 * @param offset
 *            the offset in the buffer.
 * @return the number of bytes stored in the buffer.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws ShortBufferException
 *             if the specified buffer is too small for the shared secret.
 */
public final int generateSecret(byte[] sharedSecret, int offset)
    throws IllegalStateException, ShortBufferException {
  return spiImpl.engineGenerateSecret(sharedSecret, offset);
}
origin: com.bugvm/bugvm-rt

/**
 * Generates the shared secret and stores it into the buffer {@code
 * sharedSecred} at {@code offset}.
 *
 * @param sharedSecret
 *            the buffer to store the shared secret.
 * @param offset
 *            the offset in the buffer.
 * @return the number of bytes stored in the buffer.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws ShortBufferException
 *             if the specified buffer is too small for the shared secret.
 */
public final int generateSecret(byte[] sharedSecret, int offset)
    throws IllegalStateException, ShortBufferException {
  return spiImpl.engineGenerateSecret(sharedSecret, offset);
}
origin: com.gluonhq/robovm-rt

/**
 * Generates the shared secret and stores it into the buffer {@code
 * sharedSecred} at {@code offset}.
 *
 * @param sharedSecret
 *            the buffer to store the shared secret.
 * @param offset
 *            the offset in the buffer.
 * @return the number of bytes stored in the buffer.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws ShortBufferException
 *             if the specified buffer is too small for the shared secret.
 */
public final int generateSecret(byte[] sharedSecret, int offset)
    throws IllegalStateException, ShortBufferException {
  return spiImpl.engineGenerateSecret(sharedSecret, offset);
}
origin: FlexoVM/flexovm

/**
 * Generates the shared secret and stores it into the buffer {@code
 * sharedSecred} at {@code offset}.
 *
 * @param sharedSecret
 *            the buffer to store the shared secret.
 * @param offset
 *            the offset in the buffer.
 * @return the number of bytes stored in the buffer.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws ShortBufferException
 *             if the specified buffer is too small for the shared secret.
 */
public final int generateSecret(byte[] sharedSecret, int offset)
    throws IllegalStateException, ShortBufferException {
  return spiImpl.engineGenerateSecret(sharedSecret, offset);
}
origin: MobiVM/robovm

/**
 * Generates the shared secret.
 *
 * @param algorithm
 *            the algorithm to for the {@code SecretKey}
 * @return the shared secret as a {@code SecretKey} of the specified
 *         algorithm.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws NoSuchAlgorithmException
 *             if the specified algorithm for the secret key does not
 *             exists.
 * @throws InvalidKeyException
 *             if a {@code SecretKey} with the specified algorithm cannot be
 *             created using the generated shared secret.
 */
public final SecretKey generateSecret(String algorithm)
    throws IllegalStateException, NoSuchAlgorithmException,
    InvalidKeyException {
  return spiImpl.engineGenerateSecret(algorithm);
}
origin: ibinti/bugvm

/**
 * Generates the shared secret.
 *
 * @param algorithm
 *            the algorithm to for the {@code SecretKey}
 * @return the shared secret as a {@code SecretKey} of the specified
 *         algorithm.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws NoSuchAlgorithmException
 *             if the specified algorithm for the secret key does not
 *             exists.
 * @throws InvalidKeyException
 *             if a {@code SecretKey} with the specified algorithm cannot be
 *             created using the generated shared secret.
 */
public final SecretKey generateSecret(String algorithm)
    throws IllegalStateException, NoSuchAlgorithmException,
    InvalidKeyException {
  return spiImpl.engineGenerateSecret(algorithm);
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Generates the shared secret.
 *
 * @param algorithm
 *            the algorithm to for the {@code SecretKey}
 * @return the shared secret as a {@code SecretKey} of the specified
 *         algorithm.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws NoSuchAlgorithmException
 *             if the specified algorithm for the secret key does not
 *             exists.
 * @throws InvalidKeyException
 *             if a {@code SecretKey} with the specified algorithm cannot be
 *             created using the generated shared secret.
 */
public final SecretKey generateSecret(String algorithm)
    throws IllegalStateException, NoSuchAlgorithmException,
    InvalidKeyException {
  return spiImpl.engineGenerateSecret(algorithm);
}
origin: com.bugvm/bugvm-rt

/**
 * Generates the shared secret.
 *
 * @param algorithm
 *            the algorithm to for the {@code SecretKey}
 * @return the shared secret as a {@code SecretKey} of the specified
 *         algorithm.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws NoSuchAlgorithmException
 *             if the specified algorithm for the secret key does not
 *             exists.
 * @throws InvalidKeyException
 *             if a {@code SecretKey} with the specified algorithm cannot be
 *             created using the generated shared secret.
 */
public final SecretKey generateSecret(String algorithm)
    throws IllegalStateException, NoSuchAlgorithmException,
    InvalidKeyException {
  return spiImpl.engineGenerateSecret(algorithm);
}
origin: FlexoVM/flexovm

/**
 * Generates the shared secret.
 *
 * @param algorithm
 *            the algorithm to for the {@code SecretKey}
 * @return the shared secret as a {@code SecretKey} of the specified
 *         algorithm.
 * @throws IllegalStateException
 *             if this key agreement is not complete.
 * @throws NoSuchAlgorithmException
 *             if the specified algorithm for the secret key does not
 *             exists.
 * @throws InvalidKeyException
 *             if a {@code SecretKey} with the specified algorithm cannot be
 *             created using the generated shared secret.
 */
public final SecretKey generateSecret(String algorithm)
    throws IllegalStateException, NoSuchAlgorithmException,
    InvalidKeyException {
  return spiImpl.engineGenerateSecret(algorithm);
}
javax.cryptoKeyAgreementSpiengineGenerateSecret

Javadoc

Generates the shared secret.

Popular methods of KeyAgreementSpi

  • engineDoPhase
    Does the next (or the last) phase of the key agreement, using the specified key.
  • engineInit
    Initializes this KeyAgreementSpi with the specified key, algorithm parameters and randomness source.

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JButton (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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