Tabnine Logo
SecretKeyFactorySpi
Code IndexAdd Tabnine to your IDE (free)

How to use
SecretKeyFactorySpi
in
javax.crypto

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

origin: robovm/robovm

/**
 * Generate a secret key from the specified key specification.
 *
 * @param keySpec
 *            the key specification.
 * @return a secret key.
 * @throws InvalidKeySpecException
 *             if the specified key specification cannot be used to generate
 *             a secret key.
 */
public final SecretKey generateSecret(KeySpec keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGenerateSecret(keySpec);
}
origin: robovm/robovm

/**
 * Returns the key specification of the specified secret key.
 *
 * @param key
 *            the secret key to get the specification from.
 * @param keySpec
 *            the target key specification class.
 * @return an instance of the specified key specification class.
 * @throws InvalidKeySpecException
 *             if the specified secret key cannot be transformed into the
 *             requested key specification.
 */
@SuppressWarnings("unchecked")
public final KeySpec getKeySpec(SecretKey key, Class keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGetKeySpec(key, keySpec);
}
origin: robovm/robovm

  /**
   * Translates the specified secret key into an instance of the corresponding
   * key from the provider of this key factory.
   *
   * @param key
   *            the secret key to translate.
   * @return the corresponding translated key.
   * @throws InvalidKeyException
   *             if the specified key cannot be translated using this key
   *             factory.
   */
  public final SecretKey translateKey(SecretKey key)
      throws InvalidKeyException {
    return spiImpl.engineTranslateKey(key);

  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Generate a secret key from the specified key specification.
 *
 * @param keySpec
 *            the key specification.
 * @return a secret key.
 * @throws InvalidKeySpecException
 *             if the specified key specification cannot be used to generate
 *             a secret key.
 */
public final SecretKey generateSecret(KeySpec keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGenerateSecret(keySpec);
}
origin: MobiVM/robovm

  /**
   * Translates the specified secret key into an instance of the corresponding
   * key from the provider of this key factory.
   *
   * @param key
   *            the secret key to translate.
   * @return the corresponding translated key.
   * @throws InvalidKeyException
   *             if the specified key cannot be translated using this key
   *             factory.
   */
  public final SecretKey translateKey(SecretKey key)
      throws InvalidKeyException {
    return spiImpl.engineTranslateKey(key);

  }
}
origin: MobiVM/robovm

/**
 * Returns the key specification of the specified secret key.
 *
 * @param key
 *            the secret key to get the specification from.
 * @param keySpec
 *            the target key specification class.
 * @return an instance of the specified key specification class.
 * @throws InvalidKeySpecException
 *             if the specified secret key cannot be transformed into the
 *             requested key specification.
 */
@SuppressWarnings("unchecked")
public final KeySpec getKeySpec(SecretKey key, Class keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGetKeySpec(key, keySpec);
}
origin: com.bugvm/bugvm-rt

/**
 * Generate a secret key from the specified key specification.
 *
 * @param keySpec
 *            the key specification.
 * @return a secret key.
 * @throws InvalidKeySpecException
 *             if the specified key specification cannot be used to generate
 *             a secret key.
 */
public final SecretKey generateSecret(KeySpec keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGenerateSecret(keySpec);
}
origin: com.gluonhq/robovm-rt

  /**
   * Translates the specified secret key into an instance of the corresponding
   * key from the provider of this key factory.
   *
   * @param key
   *            the secret key to translate.
   * @return the corresponding translated key.
   * @throws InvalidKeyException
   *             if the specified key cannot be translated using this key
   *             factory.
   */
  public final SecretKey translateKey(SecretKey key)
      throws InvalidKeyException {
    return spiImpl.engineTranslateKey(key);

  }
}
origin: ibinti/bugvm

/**
 * Returns the key specification of the specified secret key.
 *
 * @param key
 *            the secret key to get the specification from.
 * @param keySpec
 *            the target key specification class.
 * @return an instance of the specified key specification class.
 * @throws InvalidKeySpecException
 *             if the specified secret key cannot be transformed into the
 *             requested key specification.
 */
@SuppressWarnings("unchecked")
public final KeySpec getKeySpec(SecretKey key, Class keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGetKeySpec(key, keySpec);
}
origin: FlexoVM/flexovm

/**
 * Generate a secret key from the specified key specification.
 *
 * @param keySpec
 *            the key specification.
 * @return a secret key.
 * @throws InvalidKeySpecException
 *             if the specified key specification cannot be used to generate
 *             a secret key.
 */
public final SecretKey generateSecret(KeySpec keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGenerateSecret(keySpec);
}
origin: com.bugvm/bugvm-rt

  /**
   * Translates the specified secret key into an instance of the corresponding
   * key from the provider of this key factory.
   *
   * @param key
   *            the secret key to translate.
   * @return the corresponding translated key.
   * @throws InvalidKeyException
   *             if the specified key cannot be translated using this key
   *             factory.
   */
  public final SecretKey translateKey(SecretKey key)
      throws InvalidKeyException {
    return spiImpl.engineTranslateKey(key);

  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the key specification of the specified secret key.
 *
 * @param key
 *            the secret key to get the specification from.
 * @param keySpec
 *            the target key specification class.
 * @return an instance of the specified key specification class.
 * @throws InvalidKeySpecException
 *             if the specified secret key cannot be transformed into the
 *             requested key specification.
 */
@SuppressWarnings("unchecked")
public final KeySpec getKeySpec(SecretKey key, Class keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGetKeySpec(key, keySpec);
}
origin: MobiVM/robovm

/**
 * Generate a secret key from the specified key specification.
 *
 * @param keySpec
 *            the key specification.
 * @return a secret key.
 * @throws InvalidKeySpecException
 *             if the specified key specification cannot be used to generate
 *             a secret key.
 */
public final SecretKey generateSecret(KeySpec keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGenerateSecret(keySpec);
}
origin: ibinti/bugvm

  /**
   * Translates the specified secret key into an instance of the corresponding
   * key from the provider of this key factory.
   *
   * @param key
   *            the secret key to translate.
   * @return the corresponding translated key.
   * @throws InvalidKeyException
   *             if the specified key cannot be translated using this key
   *             factory.
   */
  public final SecretKey translateKey(SecretKey key)
      throws InvalidKeyException {
    return spiImpl.engineTranslateKey(key);

  }
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the key specification of the specified secret key.
 *
 * @param key
 *            the secret key to get the specification from.
 * @param keySpec
 *            the target key specification class.
 * @return an instance of the specified key specification class.
 * @throws InvalidKeySpecException
 *             if the specified secret key cannot be transformed into the
 *             requested key specification.
 */
@SuppressWarnings("unchecked")
public final KeySpec getKeySpec(SecretKey key, Class keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGetKeySpec(key, keySpec);
}
origin: com.gluonhq/robovm-rt

/**
 * Generate a secret key from the specified key specification.
 *
 * @param keySpec
 *            the key specification.
 * @return a secret key.
 * @throws InvalidKeySpecException
 *             if the specified key specification cannot be used to generate
 *             a secret key.
 */
public final SecretKey generateSecret(KeySpec keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGenerateSecret(keySpec);
}
origin: com.mobidevelop.robovm/robovm-rt

  /**
   * Translates the specified secret key into an instance of the corresponding
   * key from the provider of this key factory.
   *
   * @param key
   *            the secret key to translate.
   * @return the corresponding translated key.
   * @throws InvalidKeyException
   *             if the specified key cannot be translated using this key
   *             factory.
   */
  public final SecretKey translateKey(SecretKey key)
      throws InvalidKeyException {
    return spiImpl.engineTranslateKey(key);

  }
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the key specification of the specified secret key.
 *
 * @param key
 *            the secret key to get the specification from.
 * @param keySpec
 *            the target key specification class.
 * @return an instance of the specified key specification class.
 * @throws InvalidKeySpecException
 *             if the specified secret key cannot be transformed into the
 *             requested key specification.
 */
@SuppressWarnings("unchecked")
public final KeySpec getKeySpec(SecretKey key, Class keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGetKeySpec(key, keySpec);
}
origin: ibinti/bugvm

/**
 * Generate a secret key from the specified key specification.
 *
 * @param keySpec
 *            the key specification.
 * @return a secret key.
 * @throws InvalidKeySpecException
 *             if the specified key specification cannot be used to generate
 *             a secret key.
 */
public final SecretKey generateSecret(KeySpec keySpec)
    throws InvalidKeySpecException {
  return spiImpl.engineGenerateSecret(keySpec);
}
origin: FlexoVM/flexovm

  /**
   * Translates the specified secret key into an instance of the corresponding
   * key from the provider of this key factory.
   *
   * @param key
   *            the secret key to translate.
   * @return the corresponding translated key.
   * @throws InvalidKeyException
   *             if the specified key cannot be translated using this key
   *             factory.
   */
  public final SecretKey translateKey(SecretKey key)
      throws InvalidKeyException {
    return spiImpl.engineTranslateKey(key);

  }
}
javax.cryptoSecretKeyFactorySpi

Javadoc

The Service Provider Interface (SPI) definition for the SecretKeyFactory class.

Most used methods

  • engineGenerateSecret
    Generate a secret key from the specified key specification.
  • engineGetKeySpec
    Returns the key specification of the specified secret key.
  • engineTranslateKey
    Translates the specified secret key into an instance of the corresponding key from the provider of t

Popular in Java

  • Parsing JSON documents to java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JLabel (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Best plugins for Eclipse
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