Class X509Certificate2Collection
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- org.mases.jcobridge.netreflection.NetObjectEnumerable
-
- system.collections.CollectionBase
-
- system.security.cryptography.x509certificates.X509CertificateCollection
-
- system.security.cryptography.x509certificates.X509Certificate2Collection
-
- All Implemented Interfaces:
java.lang.Iterable<NetObject>,IEnumerable,IJCOBridgeReflected
public class X509Certificate2Collection extends X509CertificateCollection
The base .NET class managing System.Security.Cryptography.X509Certificates.X509Certificate2Collection, System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.X509Certificates.X509Certificate2Collection
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, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptographystatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.X509Certificates.X509Certificate2Collectionstatic JCTypeclassTypeThe type managed from JCOBridge.-
Fields inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
Null
-
-
Constructor Summary
Constructors Constructor Description X509Certificate2Collection()X509Certificate2Collection(java.lang.Object instance)Internal constructor.X509Certificate2Collection(X509Certificate2 certificate)X509Certificate2Collection(X509Certificate2[] certificates)X509Certificate2Collection(X509Certificate2Collection certificates)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intAdd(X509Certificate2 certificate)voidAddRange(X509Certificate2[] certificates)voidAddRange(X509Certificate2Collection certificates)static X509Certificate2Collectioncast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoX509Certificate2Collection, a cast assert is made to check if types are compatible.booleanContains(X509Certificate2 certificate)byte[]Export(X509ContentType contentType)byte[]Export(X509ContentType contentType, java.lang.String password)java.lang.StringExportCertificatePems()java.lang.StringExportPkcs7Pem()X509Certificate2CollectionFind(X509FindType findType, NetObject findValue, boolean validOnly)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 TypevoidImport(byte[] rawData)voidImport(byte[] rawData, java.lang.String password, X509KeyStorageFlags keyStorageFlags)voidImport(java.lang.String fileName)voidImport(java.lang.String fileName, java.lang.String password, X509KeyStorageFlags keyStorageFlags)voidImport(JCORefOut dupParam0)voidImport(JCORefOut dupParam0, java.lang.String dupParam1, X509KeyStorageFlags dupParam2)voidImportFromPemFile(java.lang.String certPemFilePath)voidInsert(int index, X509Certificate2 certificate)voidRemove(X509Certificate2 certificate)voidRemoveRange(X509Certificate2[] certificates)voidRemoveRange(X509Certificate2Collection certificates)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.security.cryptography.x509certificates.X509CertificateCollection
Add, AddRange, AddRange, Contains, CopyTo, IndexOf, Insert, Remove
-
Methods inherited from class system.collections.CollectionBase
Clear, getCapacity, getCount, RemoveAt, setCapacity
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObjectEnumerable
GetEnumerator, iterator
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, 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- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.X509Certificates.X509Certificate2Collection- See Also:
- Constant Field Values
-
-
Constructor Detail
-
X509Certificate2Collection
public X509Certificate2Collection(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
X509Certificate2Collection
public X509Certificate2Collection() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
X509Certificate2Collection
public X509Certificate2Collection(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
X509Certificate2Collection
public X509Certificate2Collection(X509Certificate2[] certificates) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
X509Certificate2Collection
public X509Certificate2Collection(X509Certificate2Collection certificates) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classX509CertificateCollection- 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 classX509CertificateCollection- 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 classX509CertificateCollection- 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 classX509CertificateCollection- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classX509CertificateCollection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classX509CertificateCollection- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static X509Certificate2Collection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoX509Certificate2Collection, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
X509Certificate2Collectioninstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Contains
public boolean Contains(X509Certificate2 certificate) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Export
public byte[] Export(X509ContentType contentType, java.lang.String password) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentException, MissingMethodException, TargetInvocationException, ObjectDisposedException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, CryptographicException
- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionArrayTypeMismatchExceptionNotSupportedExceptionInvalidOperationExceptionCryptographicException
-
Export
public byte[] Export(X509ContentType contentType) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, IndexOutOfRangeException, FormatException, ArgumentException, MissingMethodException, TargetInvocationException, ObjectDisposedException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, CryptographicException
- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionObjectDisposedExceptionArrayTypeMismatchExceptionNotSupportedExceptionInvalidOperationExceptionCryptographicException
-
Add
public int Add(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Find
public X509Certificate2Collection Find(X509FindType findType, NetObject findValue, boolean validOnly) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException, CryptographicException, OverflowException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionCryptographicExceptionOverflowException
-
ExportCertificatePems
public java.lang.String ExportCertificatePems() throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, ArgumentNullException
-
ExportPkcs7Pem
public java.lang.String ExportPkcs7Pem() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, MissingMethodException, TargetInvocationException, ArrayTypeMismatchException, InvalidOperationException, FormatException, CryptographicException, NotSupportedException, CultureNotFoundException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionOutOfMemoryExceptionArgumentExceptionMissingMethodExceptionTargetInvocationExceptionArrayTypeMismatchExceptionInvalidOperationExceptionFormatExceptionCryptographicExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedException
-
AddRange
public void AddRange(X509Certificate2[] certificates) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
AddRange
public void AddRange(X509Certificate2Collection certificates) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Import
public void Import(byte[] rawData, java.lang.String password, X509KeyStorageFlags keyStorageFlags) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, FormatException, AsnContentException, CryptographicException, Pkcs12LoadLimitExceededException, IOException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionAsnContentExceptionCryptographicExceptionPkcs12LoadLimitExceededExceptionIOException
-
Import
public void Import(JCORefOut dupParam0, java.lang.String dupParam1, X509KeyStorageFlags dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, MissingMethodException, TargetInvocationException, FormatException, AsnContentException, CryptographicException, Pkcs12LoadLimitExceededException, IOException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionAsnContentExceptionCryptographicExceptionPkcs12LoadLimitExceededExceptionIOException
-
Import
public void Import(byte[] rawData) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, AsnContentException, CryptographicException, Pkcs12LoadLimitExceededException, IOException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionIndexOutOfRangeExceptionFormatExceptionAsnContentExceptionCryptographicExceptionPkcs12LoadLimitExceededExceptionIOException
-
Import
public void Import(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, AsnContentException, CryptographicException, Pkcs12LoadLimitExceededException, IOException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionIndexOutOfRangeExceptionFormatExceptionAsnContentExceptionCryptographicExceptionPkcs12LoadLimitExceededExceptionIOException
-
Import
public void Import(java.lang.String fileName, java.lang.String password, X509KeyStorageFlags keyStorageFlags) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, AsnContentException, CryptographicException, Pkcs12LoadLimitExceededException, IOException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionIndexOutOfRangeExceptionFormatExceptionAsnContentExceptionCryptographicExceptionPkcs12LoadLimitExceededExceptionIOException
-
Import
public void Import(java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, MissingMethodException, TargetInvocationException, IndexOutOfRangeException, FormatException, AsnContentException, CryptographicException, Pkcs12LoadLimitExceededException, IOException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionMissingMethodExceptionTargetInvocationExceptionIndexOutOfRangeExceptionFormatExceptionAsnContentExceptionCryptographicExceptionPkcs12LoadLimitExceededExceptionIOException
-
ImportFromPemFile
public void ImportFromPemFile(java.lang.String certPemFilePath) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, IndexOutOfRangeException, CryptographicException, AsnContentException, MissingMethodException, TargetInvocationException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionCryptographicExceptionAsnContentExceptionMissingMethodExceptionTargetInvocationException
-
Insert
public void Insert(int index, X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
Remove
public void Remove(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
RemoveRange
public void RemoveRange(X509Certificate2[] certificates) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
RemoveRange
public void RemoveRange(X509Certificate2Collection certificates) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
-
-