Enumeration

enum PublicKeyAlgorithm

public enum PublicKeyAlgorithm <: Equatable<PublicKeyAlgorithm> & ToString {
    RSA | DSA | ECDSA | UnknownPublicKeyAlgorithm
}

Description: Indicates the public key type information contained in a digital certificate. Currently, RSA, DSA, and ECDSA are supported.

Parent Type:

DSA

DSA

Description: Indicates the DSA public key algorithm.

ECDSA

ECDSA

Description: Indicates the ECDSA public key algorithm.

RSA

RSA

Description: Indicates the RSA public key algorithm.

UnknownPublicKeyAlgorithm

UnknownPublicKeyAlgorithm

Description: Indicates an unknown public key algorithm.

func toString()

public override func toString(): String

Description: Generates the public key algorithm name string carried in a certificate.

Returns:

  • String: public key algorithm name string carried in the certificate

operator func !=(PublicKeyAlgorithm)

public override operator func !=(other: PublicKeyAlgorithm): Bool

Description: Checks whether two public key algorithms are different.

Parameters:

Returns:

  • Bool: If the public key algorithms are different, true is returned. Otherwise, false is returned.

operator func ==(PublicKeyAlgorithm)

public override operator func ==(other: PublicKeyAlgorithm): Bool

Description: Checks whether two public key algorithms are the same.

Parameters:

Returns:

  • Bool: If the public key algorithms are the same, true is returned. Otherwise, false is returned.

enum SignatureAlgorithm

public enum SignatureAlgorithm <: Equatable<SignatureAlgorithm> & ToString {
    | MD2WithRSA | MD5WithRSA | SHA1WithRSA | SHA256WithRSA | SHA384WithRSA
    | SHA512WithRSA | DSAWithSHA1 | DSAWithSHA256 | ECDSAWithSHA1 | ECDSAWithSHA256
    | ECDSAWithSHA384 | ECDSAWithSHA512 | UnknownSignatureAlgorithm
}

Description: A certificate signature algorithm (Signature Algorithm) is used to sign digital certificates. It encrypts the public key and other information in a digital certificate to guarantee the integrity and authenticity of the digital certificate.

Currently, the following signature algorithms are supported: MD2WithRSA, MD5WithRSA, SHA1WithRSA, SHA256WithRSA, SHA384WithRSA, SHA512WithRSA, DSAWithSHA1, DSAWithSHA256, ECDSAWithSHA1, ECDSAWithSHA256, ECDSAWithSHA384, and ECDSAWithSHA512.

Parent Type:

DSAWithSHA1

DSAWithSHA1

Description: Indicates the DSAwithSHA1 signature algorithm.

DSAWithSHA256

DSAWithSHA256

Description: Indicates the DSAwithSHA256 signature algorithm.

ECDSAWithSHA1

ECDSAWithSHA1

Description: Indicates the ECDSAwithSHA1 signature algorithm.

ECDSAWithSHA256

ECDSAWithSHA256

Description: Indicates the ECDSAwithSHA256 signature algorithm.

ECDSAWithSHA384

ECDSAWithSHA384

Description: Indicates the ECDSAwithSHA384 signature algorithm.

ECDSAWithSHA512

ECDSAWithSHA512

Description: Indicates the ECDSAwithSHA512 signature algorithm.

MD2WithRSA

MD2WithRSA

Description: Indicates the MD2withRSA signature algorithm.

MD5WithRSA

MD5WithRSA

Description: Indicates the MD5withRSA signature algorithm.

SHA1WithRSA

SHA1WithRSA

Description: Indicates the SHA1withRSA signature algorithm.

SHA256WithRSA

SHA256WithRSA

Description: Indicates the SHA256withRSA signature algorithm.

SHA384WithRSA

SHA384WithRSA

Description: Indicates the SHA384withRSA signature algorithm.

SHA512WithRSA

SHA512WithRSA

Description: Indicates the SHA512withRSA signature algorithm.

UnknownSignatureAlgorithm

UnknownSignatureAlgorithm

Description: Indicates an unknown signature algorithm.

func toString()

public override func toString(): String

Description: Generates a certificate signature algorithm name string.

Returns:

  • String: certificate signature algorithm name string

operator func !=

public override operator func !=(other: SignatureAlgorithm): Bool

Description: Checks whether two signature algorithms are different.

Parameters:

Returns:

  • Bool: If the signature algorithms are different, true is returned. Otherwise, false is returned.

operator func ==

public override operator func ==(other: SignatureAlgorithm): Bool

Description: Checks whether two signature algorithms are the same.

Parameters:

Returns:

  • Bool: If the signature algorithms are the same, true is returned. Otherwise, false is returned.