public class Pkcs12SafeContents extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Cryptography.Pkcs.Pkcs12SafeContents
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Pkcs, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Cryptography.Pkcs
|
static java.lang.String |
className
Qualified class name: System.Security.Cryptography.Pkcs.Pkcs12SafeContents
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Pkcs12SafeContents()
Initializes a new instance by invoking the .NET constructor.
|
Pkcs12SafeContents(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Pkcs12CertBag |
AddCertificate(X509Certificate2 certificate)
Invokes the .NET member AddCertificate.
|
Pkcs12KeyBag |
AddKeyUnencrypted(AsymmetricAlgorithm key)
Invokes the .NET member AddKeyUnencrypted.
|
Pkcs12SafeContentsBag |
AddNestedContents(Pkcs12SafeContents safeContents)
Invokes the .NET member AddNestedContents.
|
void |
AddSafeBag(Pkcs12SafeBag safeBag)
Invokes the .NET member AddSafeBag.
|
Pkcs12SecretBag |
AddSecret(Oid secretType,
ReadOnlyMemory_1 secretValue)
Invokes the .NET member AddSecret.
|
Pkcs12ShroudedKeyBag |
AddShroudedKey(AsymmetricAlgorithm key,
byte[] passwordBytes,
PbeParameters pbeParameters)
Invokes the .NET member AddShroudedKey.
|
Pkcs12ShroudedKeyBag |
AddShroudedKey(AsymmetricAlgorithm dupParam0,
JCORefOut dupParam1,
PbeParameters dupParam2)
Invokes the .NET member AddShroudedKey.
|
Pkcs12ShroudedKeyBag |
AddShroudedKey(AsymmetricAlgorithm key,
java.lang.String password,
PbeParameters pbeParameters)
Invokes the .NET member AddShroudedKey.
|
static Pkcs12SafeContents |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Pkcs12SafeContents, a cast assert is made to check if types are compatible. |
void |
Decrypt(byte[] passwordBytes)
Invokes the .NET member Decrypt.
|
void |
Decrypt(JCORefOut dupParam0)
Invokes the .NET member Decrypt.
|
void |
Decrypt(java.lang.String password)
Invokes the .NET member Decrypt.
|
IEnumerable_1 |
GetBags()
Invokes the .NET member GetBags.
|
Pkcs12ConfidentialityMode |
getConfidentialityMode()
Gets the value of the .NET property ConfidentialityMode.
|
boolean |
getIsReadOnly()
Gets the value of the .NET property IsReadOnly.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
void |
setConfidentialityMode(Pkcs12ConfidentialityMode ConfidentialityMode)
Sets the value of the .NET property ConfidentialityMode.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Pkcs12SafeContents()
throws java.lang.Throwable
java.lang.Throwable - if the .NET constructor failspublic Pkcs12SafeContents(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic Pkcs12CertBag AddCertificate(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OverflowException, IndexOutOfRangeException, AsnContentException
certificate - the argument of type X509Certificate2java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itCryptographicException - if the .NET member raises itOverflowException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itAsnContentException - if the .NET member raises itpublic Pkcs12KeyBag AddKeyUnencrypted(AsymmetricAlgorithm key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, NotImplementedException, IndexOutOfRangeException, AsnContentException, CryptographicException
key - the argument of type AsymmetricAlgorithmjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itNotImplementedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic Pkcs12SafeContentsBag AddNestedContents(Pkcs12SafeContents safeContents) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, AsnContentException, OverflowException, CryptographicException
safeContents - the argument of type Pkcs12SafeContentsjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itAsnContentException - if the .NET member raises itOverflowException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void AddSafeBag(Pkcs12SafeBag safeBag) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
safeBag - the argument of type Pkcs12SafeBagjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic Pkcs12SecretBag AddSecret(Oid secretType, ReadOnlyMemory_1 secretValue) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, AsnContentException, CryptographicException, OverflowException
secretType - the argument of type OidsecretValue - the argument of type ReadOnlyMemory_1java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itOverflowException - if the .NET member raises itpublic Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, byte[] passwordBytes, PbeParameters pbeParameters) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NotImplementedException, AsnContentException, CryptographicException
key - the argument of type AsymmetricAlgorithmpasswordBytes - the argument of type byte[]pbeParameters - the argument of type PbeParametersjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotImplementedException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm dupParam0, JCORefOut dupParam1, PbeParameters dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NotImplementedException, AsnContentException, CryptographicException
dupParam0 - the argument of type AsymmetricAlgorithmdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type PbeParametersjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotImplementedException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic Pkcs12ShroudedKeyBag AddShroudedKey(AsymmetricAlgorithm key, java.lang.String password, PbeParameters pbeParameters) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, NotImplementedException, AsnContentException, CryptographicException
key - the argument of type AsymmetricAlgorithmpassword - the argument of type java.lang.StringpbeParameters - the argument of type PbeParametersjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itNotImplementedException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic static Pkcs12SafeContents cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Pkcs12SafeContents, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPkcs12SafeContents instancejava.lang.Throwable - in case of error during cast operationpublic void Decrypt(byte[] passwordBytes)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
AsnContentException,
CryptographicException,
NotSupportedException,
ArrayTypeMismatchException,
ObjectDisposedException
passwordBytes - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Decrypt(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, AsnContentException, CryptographicException, NotSupportedException, ArrayTypeMismatchException, ObjectDisposedException
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void Decrypt(java.lang.String password)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
AsnContentException,
CryptographicException,
NotSupportedException,
ArrayTypeMismatchException,
ObjectDisposedException
password - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itAsnContentException - if the .NET member raises itCryptographicException - if the .NET member raises itNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic IEnumerable_1 GetBags() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic Pkcs12ConfidentialityMode getConfidentialityMode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean getIsReadOnly()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic void setConfidentialityMode(Pkcs12ConfidentialityMode ConfidentialityMode) throws java.lang.Throwable
ConfidentialityMode - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying object