Class Certificate
This class describes a certificate object. Inherits from TokenObject.
Note that the constructor is not intended to be called by user code. Such objects are constructed internally by the API.
Inherited Members
Namespace: scmapi
Assembly: scmapi.dll
Syntax
public class Certificate : TokenObject
Methods
GetIssuer()
Gets the issuer name of the certificate.
The string is obtained by using the same rules as for the GetSubject() string.
Declaration
public string GetIssuer()
Returns
| Type | Description |
|---|---|
| System.String | the issuer name of the certificate. |
GetNoBefore()
Gets the certificate start of validity date.
Declaration
public string GetNoBefore()
Returns
| Type | Description |
|---|---|
| System.String | start of validity date, given as a RFC1123 string. |
GetNotAfter()
Gets the certificate end of validity date.
Declaration
public string GetNotAfter()
Returns
| Type | Description |
|---|---|
| System.String | end of validity date, given as a RFC1123 string. |
GetSerial()
Gets the certificate serial number.
Declaration
public string GetSerial()
Returns
| Type | Description |
|---|---|
| System.String | the serial number. |
GetSubject()
Gets the subject name of the certificate.
The String is extracted from the last (most specific) occurrence of common name field.
If no such field is defined, the implementation falls back on the first organizational unit name field, or the first organization name field, or the first email address field (in this order).
Declaration
public string GetSubject()
Returns
| Type | Description |
|---|---|
| System.String | the subject name of the certificate. |
IsRoot()
Return true if the certificate is a root certificate.
Declaration
public string IsRoot()
Returns
| Type | Description |
|---|---|
| System.String |
|