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=8.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.String
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Security.Cryptographystatic java.lang.String
className
Qualified class name: System.Security.Cryptography.X509Certificates.X509Certificate2Collectionstatic JCType
classType
The 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 int
Add(X509Certificate2 certificate)
void
AddRange(X509Certificate2[] certificates)
void
AddRange(X509Certificate2Collection certificates)
static X509Certificate2Collection
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoX509Certificate2Collection
, a cast assert is made to check if types are compatible.boolean
Contains(X509Certificate2 certificate)
byte[]
Export(X509ContentType contentType)
byte[]
Export(X509ContentType contentType, java.lang.String password)
java.lang.String
ExportCertificatePems()
java.lang.String
ExportPkcs7Pem()
X509Certificate2Collection
Find(X509FindType findType, NetObject findValue, boolean validOnly)
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typevoid
Import(byte[] rawData)
void
Import(byte[] rawData, java.lang.String password, X509KeyStorageFlags keyStorageFlags)
void
Import(java.lang.String fileName)
void
Import(java.lang.String fileName, java.lang.String password, X509KeyStorageFlags keyStorageFlags)
void
Import(JCORefOut dupParam0)
void
Import(JCORefOut dupParam0, java.lang.String dupParam1, X509KeyStorageFlags dupParam2)
void
ImportFromPemFile(java.lang.String certPemFilePath)
void
Insert(int index, X509Certificate2 certificate)
void
Remove(X509Certificate2 certificate)
void
RemoveRange(X509Certificate2[] certificates)
void
RemoveRange(X509Certificate2Collection certificates)
void
setJCOInstance(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=8.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.Throwable
Internal 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.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
X509Certificate2Collection
public X509Certificate2Collection(X509Certificate2[] certificates) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
X509Certificate2Collection
public X509Certificate2Collection(X509Certificate2Collection certificates) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classX509CertificateCollection
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classX509CertificateCollection
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classX509CertificateCollection
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classX509CertificateCollection
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classX509CertificateCollection
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classX509CertificateCollection
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static X509Certificate2Collection cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoX509Certificate2Collection
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
X509Certificate2Collection
instance- 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, InvalidOperationException, FormatException, ArgumentException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, ArrayTypeMismatchException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
InvalidOperationException
FormatException
ArgumentException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
ArrayTypeMismatchException
CryptographicException
-
Export
public byte[] Export(X509ContentType contentType) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, FormatException, ArgumentException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ObjectDisposedException, ArrayTypeMismatchException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
InvalidOperationException
FormatException
ArgumentException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ObjectDisposedException
ArrayTypeMismatchException
CryptographicException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
MissingMethodException
TargetInvocationException
CryptographicException
OverflowException
-
ExportCertificatePems
public java.lang.String ExportCertificatePems() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException
-
ExportPkcs7Pem
public java.lang.String ExportPkcs7Pem() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, InvalidOperationException, ArgumentException, NotSupportedException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, ArrayTypeMismatchException, FormatException, CryptographicException, CultureNotFoundException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
InvalidOperationException
ArgumentException
NotSupportedException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
ArrayTypeMismatchException
FormatException
CryptographicException
CultureNotFoundException
ObjectDisposedException
-
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, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException, SerializationException, IOException, AbandonedMutexException, AsnContentException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
IndexOutOfRangeException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FormatException
SerializationException
IOException
AbandonedMutexException
AsnContentException
CryptographicException
-
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, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, FormatException, SerializationException, IOException, AbandonedMutexException, AsnContentException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
IndexOutOfRangeException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
FormatException
SerializationException
IOException
AbandonedMutexException
AsnContentException
CryptographicException
-
Import
public void Import(byte[] rawData) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, SerializationException, IOException, AbandonedMutexException, AsnContentException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IndexOutOfRangeException
FormatException
SerializationException
IOException
AbandonedMutexException
AsnContentException
CryptographicException
-
Import
public void Import(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, SerializationException, IOException, AbandonedMutexException, AsnContentException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IndexOutOfRangeException
FormatException
SerializationException
IOException
AbandonedMutexException
AsnContentException
CryptographicException
-
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, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, SerializationException, IOException, AbandonedMutexException, AsnContentException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IndexOutOfRangeException
FormatException
SerializationException
IOException
AbandonedMutexException
AsnContentException
CryptographicException
-
Import
public void Import(java.lang.String fileName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, MethodAccessException, MissingMethodException, MemberAccessException, TargetInvocationException, IndexOutOfRangeException, FormatException, SerializationException, IOException, AbandonedMutexException, AsnContentException, CryptographicException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
MethodAccessException
MissingMethodException
MemberAccessException
TargetInvocationException
IndexOutOfRangeException
FormatException
SerializationException
IOException
AbandonedMutexException
AsnContentException
CryptographicException
-
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, IOException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
IndexOutOfRangeException
CryptographicException
AsnContentException
MissingMethodException
TargetInvocationException
IOException
-
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
-
-