Class PKCS12SecretBagBuilder
java.lang.Object
org.bouncycastle.pkcs.PKCS12SecretBagBuilder
Builder for a
PKCS12SecretBag carrying an arbitrary secret value
identified by the supplied bag-type OID.-
Constructor Summary
ConstructorsConstructorDescriptionPKCS12SecretBagBuilder(org.bouncycastle.asn1.ASN1ObjectIdentifier secretTypeId, org.bouncycastle.asn1.ASN1Encodable secretValue) Base constructor. -
Method Summary
-
Constructor Details
-
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 Details
-
build
Build the configuredPKCS12SecretBag.- Returns:
- the resulting secret bag.
-