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

public Class JceETSIDataEncryptor

extends Object
implements ETSIDataEncryptor
Class Inheritance
All Implemented Interfaces
org.bouncycastle.its.operator.ETSIDataEncryptor
Imports
java.security.Provider, .SecureRandom, javax.crypto.Cipher, .SecretKey, javax.crypto.spec.SecretKeySpec, org.bouncycastle.its.operator.ETSIDataEncryptor, org.bouncycastle.jcajce.util.DefaultJcaJceHelper, .JcaJceHelper, .NamedJcaJceHelper, .ProviderJcaJceHelper

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

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

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public byte[]
public byte[]
getKey()

Implements org.bouncycastle.its.operator.ETSIDataEncryptor.getKey.

return the last key generated
public byte[]
getNonce()

Implements org.bouncycastle.its.operator.ETSIDataEncryptor.getNonce.

return the last nonce generated
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private final JcaJceHelper helper
keyback to summary
private byte[] key
nonceback to summary
private byte[] nonce
randomback to summary
private final SecureRandom random

Constructor Detail

JceETSIDataEncryptorback to summary
private JceETSIDataEncryptor(SecureRandom random, JcaJceHelper helper)

Method Detail

encryptback to summary
public byte[] encrypt(byte[] content)

Implements org.bouncycastle.its.operator.ETSIDataEncryptor.encrypt.

getKeyback to summary
public byte[] getKey()

Implements org.bouncycastle.its.operator.ETSIDataEncryptor.getKey.

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

return the last key generated

Returns:byte[]

last key value generated.

getNonceback to summary
public byte[] getNonce()

Implements org.bouncycastle.its.operator.ETSIDataEncryptor.getNonce.

Doc from org.bouncycastle.its.operator.ETSIDataEncryptor.getNonce.

return the last nonce generated

Returns:byte[]

last nonce value generated.

org.bouncycastle.its.jcajce back to summary

public Class JceETSIDataEncryptor.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private JcaJceHelper
private SecureRandom

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JceETSIDataEncryptor
public JceETSIDataEncryptor.Builder

Returns:

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

Sets the JCE provider to source cryptographic primitives from.

public JceETSIDataEncryptor.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.

public JceETSIDataEncryptor.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private JcaJceHelper helper
randomback to summary
private SecureRandom random

Constructor Detail

Builderback to summary
public Builder()

Method Detail

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

Sets the JCE provider to source cryptographic primitives from.

Parameters
provider:Provider

the JCE provider to use.

Returns:JceETSIDataEncryptor.Builder

the current builder.

setProviderback to summary
public JceETSIDataEncryptor.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:JceETSIDataEncryptor.Builder

the current builder.

setRandomback to summary
public JceETSIDataEncryptor.Builder setRandom(SecureRandom random)