class X509Certificate extends Object with StObject with _TransferListItem
- Annotations
- @JSType() @JSImport("crypto", "X509Certificate") @native()
- Source
- X509Certificate.scala
- Alphabetic
- By Inheritance
- X509Certificate
- _TransferListItem
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new X509Certificate(buffer: BinaryLike)
- new X509Certificate()
- Attributes
- protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val ca: Boolean
Will be
trueif this is a Certificate Authority (ca) certificate. - def checkEmail(email: scala.Predef.String, options: X509CheckOptions): UndefOr[scala.Predef.String]
- def checkEmail(email: scala.Predef.String): UndefOr[scala.Predef.String]
Checks whether the certificate matches the given email address.
Checks whether the certificate matches the given email address.
Returns
emailif the certificate matches,undefinedif it does not. - def checkHost(name: scala.Predef.String, options: X509CheckOptions): UndefOr[scala.Predef.String]
- def checkHost(name: scala.Predef.String): UndefOr[scala.Predef.String]
Checks whether the certificate matches the given host name.
Checks whether the certificate matches the given host name.
Returns
nameif the certificate matches,undefinedif it does not. - def checkIP(ip: scala.Predef.String, options: X509CheckOptions): UndefOr[scala.Predef.String]
- def checkIP(ip: scala.Predef.String): UndefOr[scala.Predef.String]
Checks whether the certificate matches the given IP address (IPv4 or IPv6).
Checks whether the certificate matches the given IP address (IPv4 or IPv6).
Returns
ipif the certificate matches,undefinedif it does not. - def checkIssued(otherCert: X509Certificate): Boolean
Checks whether this certificate was issued by the given
otherCert. - def checkPrivateKey(privateKey: KeyObject): Boolean
Checks whether this certificate was issued by the given
otherCert. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val fingerprint: scala.Predef.String
The SHA-1 fingerprint of this certificate.
- val fingerprint256: scala.Predef.String
The SHA-256 fingerprint of this certificate.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val infoAccess: scala.Predef.String
The information access content of this certificate.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val issuer: scala.Predef.String
The issuer identification included in this certificate.
- val issuerCertificate: UndefOr[X509Certificate]
The issuer certificate or
undefinedif the issuer certificate is not available. - val keyUsage: Array[scala.Predef.String]
An array detailing the key usages for this certificate.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def propertyIsEnumerable(v: scala.Predef.String): Boolean
- Definition Classes
- Object
- val publicKey: KeyObject
The public key for this certificate.
- val raw: Buffer
A
Buffercontaining the DER encoding of this certificate. - val serialNumber: scala.Predef.String
The serial number of this certificate.
- val subject: scala.Predef.String
The complete subject of this certificate.
- val subjectAltName: scala.Predef.String
The subject alternative name specified for this certificate.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toJSON(): scala.Predef.String
There is no standard JSON encoding for X509 certificates.
There is no standard JSON encoding for X509 certificates. The
toJSON()method returns a string containing the PEM encoded certificate. - def toLegacyObject(): PeerCertificate
Returns information about this certificate using the legacy certificate object encoding.
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- val validFrom: scala.Predef.String
Returns the PEM-encoded certificate.
- val validTo: scala.Predef.String
The date/time from which this certificate is considered valid.
- def valueOf(): Any
- Definition Classes
- Object
- def verify(publicKey: KeyObject): Boolean
Verifies that this certificate was signed by the given public key.
Verifies that this certificate was signed by the given public key. Does not perform any other validation checks on the certificate.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated