Top Inners Fields Constructors Methods
org.bouncycastle.its.jcajce

public Class JcaETSIDataDecryptor

extends Object
implements ETSIDataDecryptor
Class Inheritance
All Implemented Interfaces
org.bouncycastle.its.operator.ETSIDataDecryptor
Imports
java.security.PrivateKey, .Provider, javax.crypto.Cipher, .SecretKey, org.bouncycastle.its.operator.ETSIDataDecryptor, org.bouncycastle.jcajce.spec.IESKEMParameterSpec, org.bouncycastle.jcajce.util.JcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper, org.bouncycastle.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final JcaJceHelper
private final PrivateKey
private final byte[]
private SecretKey

Constructor Summary

AccessConstructor and Description
pack-priv
JcaETSIDataDecryptor(PrivateKey recipientInfo, byte[] recipientHash, JcaJceHelper provider)

Method Summary

Modifier and TypeMethod and Description
public static JcaETSIDataDecryptor.Builder
builder(PrivateKey privateKey, byte[] recipientHash)

public byte[]
decrypt(byte[] wrappedKey, byte[] content, byte[] nonce)

Implements org.bouncycastle.its.operator.ETSIDataDecryptor.decrypt.

public byte[]
getKey()

Implements org.bouncycastle.its.operator.ETSIDataDecryptor.getKey.

return the unwrapped key found in the data.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private final JcaJceHelper helper
privateKeyback to summary
private final PrivateKey privateKey
recipientHashback to summary
private final byte[] recipientHash
secretKeyback to summary
private SecretKey secretKey

Constructor Detail

JcaETSIDataDecryptorback to summary
pack-priv JcaETSIDataDecryptor(PrivateKey recipientInfo, byte[] recipientHash, JcaJceHelper provider)

Method Detail

builderback to summary
public static JcaETSIDataDecryptor.Builder builder(PrivateKey privateKey, byte[] recipientHash)
decryptback to summary
public byte[] decrypt(byte[] wrappedKey, byte[] content, byte[] nonce)

Implements org.bouncycastle.its.operator.ETSIDataDecryptor.decrypt.

getKeyback to summary
public byte[] getKey()

Implements org.bouncycastle.its.operator.ETSIDataDecryptor.getKey.

Doc from org.bouncycastle.its.operator.ETSIDataDecryptor.getKey.

return the unwrapped key found in the data. Call after decrypt.

Returns:byte[]

the unwrapped key.

org.bouncycastle.its.jcajce back to summary

public Class JcaETSIDataDecryptor.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final PrivateKey
private JcaJceHelper
private final byte[]

Constructor Summary

AccessConstructor and Description
public
Builder(PrivateKey key, byte[] recipientHash)

Method Summary

Modifier and TypeMethod and Description
public JcaETSIDataDecryptor
public JcaETSIDataDecryptor.Builder
provider(Provider provider)

public JcaETSIDataDecryptor.Builder
provider(String provider)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyback to summary
private final PrivateKey key
providerback to summary
private JcaJceHelper provider
recipientHashback to summary
private final byte[] recipientHash

Constructor Detail

Builderback to summary
public Builder(PrivateKey key, byte[] recipientHash)

Method Detail

buildback to summary
public JcaETSIDataDecryptor build()
providerback to summary
public JcaETSIDataDecryptor.Builder provider(Provider provider)
providerback to summary
public JcaETSIDataDecryptor.Builder provider(String provider)