Class Pkcs12SafeContents
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.pkcs.Pkcs12SafeContents
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Pkcs12SafeContents extends NetObject
The base .NET class managing System.Security.Cryptography.Pkcs.Pkcs12SafeContents, System.Security.Cryptography.Pkcs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.Pkcs.Pkcs12SafeContents
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Security.Cryptography.Pkcs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptography.Pkcsstatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.Pkcs.Pkcs12SafeContentsstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Pkcs12SafeContents()Pkcs12SafeContents(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pkcs12CertBagAddCertificate(X509Certificate2 certificate)Pkcs12KeyBagAddKeyUnencrypted(AsymmetricAlgorithm key)Pkcs12SafeContentsBagAddNestedContents(Pkcs12SafeContents safeContents)voidAddSafeBag(Pkcs12SafeBag safeBag)Pkcs12ShroudedKeyBagAddShroudedKey(AsymmetricAlgorithm key, byte[] passwordBytes, PbeParameters pbeParameters)Pkcs12ShroudedKeyBagAddShroudedKey(AsymmetricAlgorithm key, java.lang.String password, PbeParameters pbeParameters)Pkcs12ShroudedKeyBagAddShroudedKey(AsymmetricAlgorithm dupParam0, JCORefOut dupParam1, PbeParameters dupParam2)static Pkcs12SafeContentscast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPkcs12SafeContents, a cast assert is made to check if types are compatible.voidDecrypt(byte[] passwordBytes)voidDecrypt(java.lang.String password)voidDecrypt(JCORefOut dupParam0)Pkcs12ConfidentialityModegetConfidentialityMode()booleangetIsReadOnly()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypevoidsetConfidentialityMode(Pkcs12ConfidentialityMode ConfidentialityMode)voidsetJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Pkcs, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Security.Cryptography.Pkcs- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.Pkcs.Pkcs12SafeContents- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Pkcs12SafeContents cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPkcs12SafeContents, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Pkcs12SafeContentsinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
AddCertificate
public Pkcs12CertBag AddCertificate(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException, OverflowException, IndexOutOfRangeException, AsnContentException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionCryptographicExceptionOverflowExceptionIndexOutOfRangeExceptionAsnContentException
-
AddKeyUnencrypted
public Pkcs12KeyBag AddKeyUnencrypted(AsymmetricAlgorithm key) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, NotImplementedException, IndexOutOfRangeException, AsnContentException, CryptographicException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionNotImplementedExceptionIndexOutOfRangeExceptionAsnContentExceptionCryptographicException
-
AddNestedContents
public Pkcs12SafeContentsBag AddNestedContents(Pkcs12SafeContents safeContents) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, AsnContentException, OverflowException, CryptographicException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionAsnContentExceptionOverflowExceptionCryptographicException
-
AddShroudedKey
public 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
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionNotImplementedExceptionAsnContentExceptionCryptographicException
-
AddShroudedKey
public 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
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionNotImplementedExceptionAsnContentExceptionCryptographicException
-
AddShroudedKey
public 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
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionNotImplementedExceptionAsnContentExceptionCryptographicException
-
AddSafeBag
public void AddSafeBag(Pkcs12SafeBag safeBag) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
Decrypt
public void Decrypt(byte[] passwordBytes) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, AsnContentException, CryptographicException, NotSupportedException, ArrayTypeMismatchException, ObjectDisposedException
-
Decrypt
public void Decrypt(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, AsnContentException, CryptographicException, NotSupportedException, ArrayTypeMismatchException, ObjectDisposedException
-
Decrypt
public void Decrypt(java.lang.String password) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, AsnContentException, CryptographicException, NotSupportedException, ArrayTypeMismatchException, ObjectDisposedException
-
getIsReadOnly
public boolean getIsReadOnly() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getConfidentialityMode
public Pkcs12ConfidentialityMode getConfidentialityMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setConfidentialityMode
public void setConfidentialityMode(Pkcs12ConfidentialityMode ConfidentialityMode) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-