| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private AlgorithmParameters | |
| private EnvelopedDataHelper | |
| private final int | |
| private final ASN1ObjectIdentifier | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MacCalculator | |
| public JceCMSMacCalculatorBuilder | Returns: the current builder instance.algorithmParameters for MAC initialisation. algorithmParameters)Provide a set of algorithm parameters for the content MAC calculator to use. |
| public JceCMSMacCalculatorBuilder | Returns: the current builder instance.the provider object to use for MAC and default parameters creation. provider)Set the provider to use for content encryption. |
| public JceCMSMacCalculatorBuilder | Returns: the current builder instance.the name of the provider to use for MAC and default parameters creation. providerName)Set the provider to use for content encryption (by name) |
| public JceCMSMacCalculatorBuilder | Returns: the current builder instance.the secure random to use. random)Provide a specified source of randomness to be used for session key and IV/nonce generation. |
| algorithmParameters | back to summary |
|---|---|
| private AlgorithmParameters algorithmParameters | |
| helper | back to summary |
|---|---|
| private EnvelopedDataHelper helper | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| macOID | back to summary |
|---|---|
| private final ASN1ObjectIdentifier macOID | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| JceCMSMacCalculatorBuilder | back to summary |
|---|---|
| public JceCMSMacCalculatorBuilder(ASN1ObjectIdentifier macOID) | |
| JceCMSMacCalculatorBuilder | back to summary |
|---|---|
| public JceCMSMacCalculatorBuilder(ASN1ObjectIdentifier macOID, int keySize) | |
| build | back to summary |
|---|---|
| public MacCalculator build() throws CMSException | |
| setAlgorithmParameters | back to summary |
|---|---|
| public JceCMSMacCalculatorBuilder setAlgorithmParameters(AlgorithmParameters algorithmParameters) Provide a set of algorithm parameters for the content MAC calculator to use.
| |
| setProvider | back to summary |
|---|---|
| public JceCMSMacCalculatorBuilder setProvider(Provider provider) Set the provider to use for content encryption.
| |
| setProvider | back to summary |
|---|---|
| public JceCMSMacCalculatorBuilder setProvider(String providerName) Set the provider to use for content encryption (by name)
| |
| setSecureRandom | back to summary |
|---|---|
| public JceCMSMacCalculatorBuilder setSecureRandom(SecureRandom random) Provide a specified source of randomness to be used for session key and IV/nonce generation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private AlgorithmIdentifier | |
| private SecretKey | |
| private Mac |
| Access | Constructor and Description |
|---|---|
| pack-priv | CMSMacCalculator(ASN1ObjectIdentifier macOID, int keySize, AlgorithmParameters params, SecureRandom random)
|
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | |
| public GenericKey | getKey()
Implements org. Return the key used for calculating the MAC. |
| public byte[] | getMac()
Implements org. Return the calculated MAC based on what has been written to the stream. |
| public OutputStream | getOutputStream()
Implements org. Returns a stream that will accept data for the purpose of calculating the MAC for later verification. |
| algorithmIdentifier | back to summary |
|---|---|
| private AlgorithmIdentifier algorithmIdentifier | |
| encKey | back to summary |
|---|---|
| private SecretKey encKey | |
| mac | back to summary |
|---|---|
| private Mac mac | |
| CMSMacCalculator | back to summary |
|---|---|
| pack-priv CMSMacCalculator(ASN1ObjectIdentifier macOID, int keySize, AlgorithmParameters params, SecureRandom random) throws CMSException | |
| getAlgorithmIdentifier | back to summary |
|---|---|
| public AlgorithmIdentifier getAlgorithmIdentifier() Implements org. | |
| getKey | back to summary |
|---|---|
| public GenericKey getKey() Implements org. Doc from org. Return the key used for calculating the MAC.
| |
| getMac | back to summary |
|---|---|
| public byte[] getMac() Implements org. Doc from org. Return the calculated MAC based on what has been written to the stream.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Implements org. Doc from org. Returns a stream that will accept data for the purpose of calculating the MAC for later verification. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.
| |