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

public Class JceETSIKeyWrapper

extends Object
implements ETSIKeyWrapper
Class Inheritance
All Implemented Interfaces
org.bouncycastle.its.ETSIKeyWrapper
Imports
java.security.Provider, java.security.interfaces.ECPublicKey, javax.crypto.Cipher, javax.crypto.spec.SecretKeySpec, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.sec.SECObjectIdentifiers, org.bouncycastle.asn1.teletrust.TeleTrusTObjectIdentifiers, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, org.bouncycastle.its.ETSIKeyWrapper, org.bouncycastle.jcajce.spec.IESKEMParameterSpec, org.bouncycastle.jcajce.util.DefaultJcaJceHelper, .JcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper, org.bouncycastle.oer.its.ieee1609dot2.EncryptedDataEncryptionKey, org.bouncycastle.oer.its.ieee1609dot2.basetypes.EccP256CurvePoint, .EciesP256EncryptedKey, 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 byte[]
private final ECPublicKey

Constructor Summary

AccessConstructor and Description
private
JceETSIKeyWrapper(ECPublicKey key, byte[] recipientHash, JcaJceHelper helper)

Method Summary

Modifier and TypeMethod and Description
public EncryptedDataEncryptionKey
wrap(byte[] secretKey)

Implements org.bouncycastle.its.ETSIKeyWrapper.wrap.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private final JcaJceHelper helper
recipientHashback to summary
private final byte[] recipientHash
recipientKeyback to summary
private final ECPublicKey recipientKey

Constructor Detail

JceETSIKeyWrapperback to summary
private JceETSIKeyWrapper(ECPublicKey key, byte[] recipientHash, JcaJceHelper helper)

Method Detail

wrapback to summary
public EncryptedDataEncryptionKey wrap(byte[] secretKey)

Implements org.bouncycastle.its.ETSIKeyWrapper.wrap.

org.bouncycastle.its.jcajce back to summary

public Class JceETSIKeyWrapper.Builder

extends Object
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
Builder(ECPublicKey recipientKey, byte[] recipientHash)

Method Summary

Modifier and TypeMethod and Description
public JceETSIKeyWrapper
public JceETSIKeyWrapper.Builder

Returns:

the current builder.
setProvider
(Provider
the JCE provider to use.
provider
)

Sets the JCE provider to source cryptographic primitives from.

public JceETSIKeyWrapper.Builder

Returns:

the current builder.
setProvider
(String
the name of the JCE provider to use.
providerName
)

Sets the JCE provider to source cryptographic primitives from.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private JcaJceHelper helper
recipientHashback to summary
private final byte[] recipientHash
recipientKeyback to summary
private final ECPublicKey recipientKey

Constructor Detail

Builderback to summary
public Builder(ECPublicKey recipientKey, byte[] recipientHash)

Method Detail

buildback to summary
public JceETSIKeyWrapper build()
setProviderback to summary
public JceETSIKeyWrapper.Builder setProvider(Provider provider)

Sets the JCE provider to source cryptographic primitives from.

Parameters
provider:Provider

the JCE provider to use.

Returns:JceETSIKeyWrapper.Builder

the current builder.

setProviderback to summary
public JceETSIKeyWrapper.Builder setProvider(String providerName)

Sets the JCE provider to source cryptographic primitives from.

Parameters
providerName:String

the name of the JCE provider to use.

Returns:JceETSIKeyWrapper.Builder

the current builder.