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

How to use
JceAsymmetricKeyUnwrapper
in
org.spongycastle.operator.jcajce

Best Java code snippets using org.spongycastle.operator.jcajce.JceAsymmetricKeyUnwrapper (Showing top 11 results out of 315)

origin: com.madgag.spongycastle/pkix

public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
{
  return new JceAsymmetricKeyUnwrapper(keyEncryptionAlgorithm, keyEncryptionKey).setProvider(providerName);
}
origin: com.madgag.spongycastle/pkix

protected Key extractSecretKey(AlgorithmIdentifier keyEncryptionAlgorithm, AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedEncryptionKey)
  throws CMSException
  JceAsymmetricKeyUnwrapper unwrapper = helper.createAsymmetricUnwrapper(keyEncryptionAlgorithm, recipientKey).setMustProduceEncodableUnwrappedKey(unwrappedKeyMustBeEncodable);
      unwrapper.setAlgorithmMapping(algorithm, (String)extraMappings.get(algorithm));
    Key key = helper.getJceKey(encryptedKeyAlgorithm.getAlgorithm(), unwrapper.generateUnwrappedKey(encryptedKeyAlgorithm, encryptedEncryptionKey));
origin: com.madgag.spongycastle/bcpkix-jdk15on

private Key extractSecretKey(AlgorithmIdentifier keyEncryptionAlgorithm, AlgorithmIdentifier contentEncryptionAlgorithm, byte[] encryptedContentEncryptionKey)
  throws CRMFException
{
  try
  {
    JceAsymmetricKeyUnwrapper unwrapper = new JceAsymmetricKeyUnwrapper(keyEncryptionAlgorithm, recipientKey);
    if (provider != null)
    {
      unwrapper.setProvider(provider);
    }
    if (providerName != null)
    {
      unwrapper.setProvider(providerName);
    }
    return new SecretKeySpec((byte[])unwrapper.generateUnwrappedKey(contentEncryptionAlgorithm, encryptedContentEncryptionKey).getRepresentation(), contentEncryptionAlgorithm.getAlgorithm().getId());
  }
  catch (OperatorException e)
  {
    throw new CRMFException("key invalid in message: " + e.getMessage(), e);
  }
}
origin: com.madgag.spongycastle/pkix

public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
{
  return new JceAsymmetricKeyUnwrapper(keyEncryptionAlgorithm, keyEncryptionKey);
}
origin: com.madgag.spongycastle/pkix

Cipher keyCipher = helper.createAsymmetricWrapper(this.getAlgorithmIdentifier().getAlgorithm(), extraMappings);
AlgorithmParameters algParams = helper.createAlgorithmParameters(this.getAlgorithmIdentifier());
origin: com.madgag.spongycastle/bcpkix-jdk15on

JceAsymmetricKeyUnwrapper unwrapper = helper.createAsymmetricUnwrapper(keyEncryptionAlgorithm, recipientKey).setMustProduceEncodableUnwrappedKey(unwrappedKeyMustBeEncodable);
    unwrapper.setAlgorithmMapping(algorithm, (String)extraMappings.get(algorithm));
  Key key = helper.getJceKey(encryptedKeyAlgorithm.getAlgorithm(), unwrapper.generateUnwrappedKey(encryptedKeyAlgorithm, encryptedEncryptionKey));
origin: com.madgag.spongycastle/bcpkix-jdk15on

public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
{
  return new JceAsymmetricKeyUnwrapper(keyEncryptionAlgorithm, keyEncryptionKey);
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

Cipher keyCipher = helper.createAsymmetricWrapper(this.getAlgorithmIdentifier().getAlgorithm(), extraMappings);
AlgorithmParameters algParams = helper.createAlgorithmParameters(this.getAlgorithmIdentifier());
origin: com.madgag.spongycastle/bcpkix-jdk15on

public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
{
  return new JceAsymmetricKeyUnwrapper(keyEncryptionAlgorithm, keyEncryptionKey).setProvider(provider);
}
origin: com.madgag.spongycastle/pkix

public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
{
  return new JceAsymmetricKeyUnwrapper(keyEncryptionAlgorithm, keyEncryptionKey).setProvider(provider);
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

public JceAsymmetricKeyUnwrapper createAsymmetricUnwrapper(AlgorithmIdentifier keyEncryptionAlgorithm, PrivateKey keyEncryptionKey)
{
  return new JceAsymmetricKeyUnwrapper(keyEncryptionAlgorithm, keyEncryptionKey).setProvider(providerName);
}
org.spongycastle.operator.jcajceJceAsymmetricKeyUnwrapper

Most used methods

  • <init>
  • generateUnwrappedKey
  • getAlgorithmIdentifier
  • setAlgorithmMapping
    Internally algorithm ids are converted into cipher names using a lookup table. For some providers th
  • setMustProduceEncodableUnwrappedKey
    Flag that unwrapping must produce a key that will return a meaningful value from a call to Key.getEn
  • setProvider

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • setContentView (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • Top Vim plugins
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