Bouncy Castle Cryptography Library 1.85

org.bouncycastle.pkcs
Class PKCS12SecretBagBuilder

java.lang.Object
  extended byorg.bouncycastle.pkcs.PKCS12SecretBagBuilder

public class PKCS12SecretBagBuilder
extends java.lang.Object

Builder for a PKCS12SecretBag carrying an arbitrary secret value identified by the supplied bag-type OID.


Constructor Summary
PKCS12SecretBagBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier secretTypeId, org.bouncycastle.asn1.ASN1Encodable secretValue)
          Base constructor.
 
Method Summary
 PKCS12SecretBag build()
          Build the configured PKCS12SecretBag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKCS12SecretBagBuilder

public PKCS12SecretBagBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier secretTypeId,
                              org.bouncycastle.asn1.ASN1Encodable secretValue)
Base constructor.

Parameters:
secretTypeId - OID identifying the type of secret being stored.
secretValue - the secret value to wrap.
Method Detail

build

public PKCS12SecretBag build()
Build the configured PKCS12SecretBag.

Returns:
the resulting secret bag.

Bouncy Castle Cryptography Library 1.85