Click or drag to resize
weroSoft AG, Software
Certificate Class
The documentation is integral part of the weroSoft product documentation. This part is intended to be used by developers only.
Represents an X509 certificate.
Inheritance Hierarchy
SystemObject
  WeroSoft.SecurityCertificate

Namespace:  WeroSoft.Security
Assembly:  WeroSoft.Core.Library (in WeroSoft.Core.Library.dll) Version: 2.5
Syntax
C#
public sealed class Certificate : IDisposable

The Certificate type exposes the following members.

Constructors
  NameDescription
Public methodCertificate
Initializes a new instance of a certificate.
Public methodCertificate(String)
Creates a certificate from a base 64 coded string.
Top
Properties
  NameDescription
Public propertyEnhancedUsageOids
Gets all usages assigned to the current certificate.
Public propertyHasPrivateKey
Gets a value indicating whether the certificate has a private key.
Public propertyIsEmpty
Gets or sets a value indicating whether the certificate is empty or not.
Public propertyIssuer
Gets the issuer of the certificate.
Public propertyNotAfter
Gets the date in local time after which a certificate is no longer valid.
Public propertyNotBefore
Gets the date in local time on which a certificate becomes valid.
Public propertySerialNumber
Gets the serial number of the certificate.
Public propertySignatureAlgorithm
Gets the signature algorithm of the certificate.
Public propertySubject
Gets the subject of the certificate.
Public propertyThumbprint
Gets the thumb print of the certificate.
Public propertyUsage
Gets a value representing the configured usage of the certificate.
Public propertyVersion
Gets the version of the certificate.
Top
Methods
  NameDescription
Public methodStatic memberAddToStore(StoreLocation, Certificate)
Adds a certificate to the defined store location.
Public methodStatic memberAddToStore(StoreLocation, Certificate, Boolean)
Adds a certificate to the defined store location.
Public methodDecrypt(Byte)
Decrypt raw data bytes.
Public methodDecrypt(String)
Decrypts a text.
Public methodDispose
Disposes the certificate.
Public methodEncrypt(Byte)
Encrypt raw data bytes.
Public methodEncrypt(String)
Encrypt a string using the current certificate.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExport(X509ContentType, SecureString, Boolean)
Export the certificate according to the requested content type.
Public methodExport(X509ContentType, String, Boolean)
Export the certificate according to the requested content type.
Public methodGetCertificateString
Gets the certificate coded as string.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetRawCertData
Gets the raw data of the certificate.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberImport(Byte, SecureString, Boolean)
Loads the certificate from a byte array.
Public methodStatic memberImport(String, SecureString, Boolean)
Loads the certificate from a file.
Public methodStatic memberLoadFromStore(StoreLocation, String, Boolean)
Loads a certificate from the store, using the default store name StoreName.My.
Public methodStatic memberLoadFromStore(StoreLocation, String, Boolean, StoreName)
Loads a certificate from the store.
Public methodStatic memberRemoveFromStore(StoreLocation, Certificate)
Removes a certificate from the store, using the default store name StoreName.My.
Public methodStatic memberRemoveFromStore(StoreLocation, Certificate, StoreName)
Removes a certificate from the store.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberPemFooter
Defines the PEM Format footer.
Public fieldStatic memberPemHeader
Defines the PEM Format header.
Top
Extension Methods
  NameDescription
Public Extension MethodClone(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodCloneT(CloneWorkingMode, IEnumerableType)Overloaded.
Clones an object by serialization.
(Defined by RuntimeExtensions.)
Public Extension MethodConvert (Defined by DataConverterExtensions.)
Public Extension MethodDynamicCast
Dynamically casts a reference to another type.
(Defined by TypeManagerHelper.)
Public Extension MethodExtractSystemParametersFromTrigger
Extracts the system parameters from a collection of trigger parameter and transform them to a dictionary using string keys and string values.
(Defined by TriggerExtensions.)
Public Extension MethodGetFieldValue(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetFieldValueT(String)Overloaded.
Gets the data object held by a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValue(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodGetPropertyValueT(String)Overloaded.
Gets the data object held by a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodInject(Type, Object)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInject(Type, Object, Boolean)Overloaded.
Injects all fields or properties which are marked with the defined attribute type name.
(Defined by DataInjection.)
Public Extension MethodInjectField
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInjectProperty(String, Type, Object)Overloaded.
Injects a value to a property within a data object.
(Defined by DataInjection.)
Public Extension MethodInvoke(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodInvokeTResult(String, Object)Overloaded.
Invokes a method on an object by reflection.
(Defined by UnitTest.)
Public Extension MethodSetFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetPropertyValue
Sets the data object on a defined property of a particular type.
(Defined by UnitTest.)
Public Extension MethodSetReadOnlyFieldValue
Sets the data object on a defined field of a particular type.
(Defined by UnitTest.)
Public Extension MethodTryInjectProperty
Tries to Inject a value to a property within a data object.
(Defined by DataInjection.)
Top
See Also