com.eruces.teadmin.CertificateAdmin
The CertificateAdmin class is for certificate administration.
Inheritance
- Inherits com.eruces.teagent.IConnection
Static Public Attributes
| Type | Name | Description |
|---|---|---|
| final int | CERTIFICATE_ALGORITHM_ECC | The ECC algorithm. |
| final int | CERTIFICATE_ALGORITHM_RSA | The RSA algorithm. |
Public Member Functions
| Member | Description |
|---|---|
CertificateAdmin() | The CertificateAdmin constructor is the default class constructor. |
CertObjectInfo[] addCAToTrustedCAList(CertObjectInfo[] certs) | The addCAToTrustedCAList method adds one or more certificate authorities (CA) to the list of CAs. |
void removeCAFromTrustedCAList(CertObjectInfo[] certs) | The removeCAFromTrustedCAList method removes one or more certificate authorities from the list of trusted certificate authorities. |
CertObjectInfo[] getTrustedCAList() | The getTrustedCAList method gets a list of trusted certificate authorities. |
Vector generateCertificateRequest(String[] strDNs) | The generateCertificateRequest method generates certificate signing requests. |
byte[] generateCertificateRequest(String strDN, int type, int kl_curve) | The generateCertificateRequest method generates certificate signing request based on a peticular algorithm and key length or curve. |
byte[] generateCertificateRequest(String strDN, int type, String kl_curve) | The generateCertificateRequest method generates certificate signing request based on a peticular algorithm and key length or curve. |
CertObjectInfo[] getCertObjectFromCertificate(Vector vecCerts) | The getCertObjectFromCertificate method gets certificate objects using a vector of certificates. |
Member Function Documentation
CertificateAdmin()
The CertificateAdmin constructor is the default class constructor.
CertObjectInfo[] addCAToTrustedCAList(CertObjectInfo[] certs)
The addCAToTrustedCAList method adds one or more certificate authorities (CA) to the list of CAs.
Parameters
| Parameter | Description |
|---|---|
certs | An array of certificate objects. |
Returns: Returns a list of CAs that have been added to the list of trusted CAs.
void removeCAFromTrustedCAList(CertObjectInfo[] certs)
The removeCAFromTrustedCAList method removes one or more certificate authorities from the list of trusted certificate authorities.
Parameters
| Parameter | Description |
|---|---|
certs | An array of certificate authority certificates to be removed. |
CertObjectInfo[] getTrustedCAList()
The getTrustedCAList method gets a list of trusted certificate authorities.
Returns: Returns an array of trusted certificate authority certificates.
Vector generateCertificateRequest(String[] strDNs)
The generateCertificateRequest method generates certificate signing requests.
Parameters
| Parameter | Description |
|---|---|
strDNs | An array of string certificate requests. |
Returns: Returns a vector of certificate requests.
byte[] generateCertificateRequest(String strDN, int type, int kl_curve)
The generateCertificateRequest method generates certificate signing request based on a peticular algorithm and key length or curve.
Parameters
| Parameter | Description |
|---|---|
strDN | A string of certificate request |
type | Type of algorithm: 0:ECC, 1:RSA |
kl_curve | Key length or curve id. RSA: default=2048 |
Returns: Binary buffer of certificate request
See also: CERTIFICATE_ALGORITHM_ECC, CERTIFICATE_ALGORITHM_RSA
byte[] generateCertificateRequest(String strDN, int type, String kl_curve)
The generateCertificateRequest method generates certificate signing request based on a peticular algorithm and key length or curve.
Parameters
| Parameter | Description |
|---|---|
strDN | A string of certificate request. |
type | Type of algorithm: 0:ECC, 1:RSA |
kl_curve | Key length or curve id. RSA: default=2048 |
Returns: Binary buffer of certificate request
See also: CERTIFICATE_ALGORITHM_ECC, CERTIFICATE_ALGORITHM_RSA
CertObjectInfo[] getCertObjectFromCertificate(Vector vecCerts)
The getCertObjectFromCertificate method gets certificate objects using a vector of certificates.
Parameters
| Parameter | Description |
|---|---|
vecCerts | A vector of certificates. |
Returns: Returns certificate objects.