- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TBSCertificate (0.24 sec)
-
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Certificate.kt
it.id == ObjectIdentifiers.BASIC_CONSTRAINTS } } /** Returns true if the certificate was signed by [issuer]. */ @Throws(SignatureException::class) fun checkSignature(issuer: PublicKey): Boolean { val signedData = CertificateAdapters.tbsCertificate.toDer(tbsCertificate) return Signature.getInstance(tbsCertificate.signatureAlgorithmName).run { initVerify(issuer)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.4K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt
* extensions [3] EXPLICIT Extensions OPTIONAL -- If present, version MUST be v3 * } * ``` */ internal val tbsCertificate: BasicDerAdapter<TbsCertificate> = Adapters.sequence( "TBSCertificate", Adapters.INTEGER_AS_LONG .withExplicitBox(tag = 0L) // v1 == 0. .optional(defaultValue = 0), Adapters.INTEGER_AS_BIG_INTEGER,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13.6K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
Signature.getInstance(tbsCertificate.signatureAlgorithmName).run { initSign(issuerKeyPair.private) update(CertificateAdapters.tbsCertificate.toDer(tbsCertificate).toByteArray()) sign().toByteString() } // Complete signed certificate. val certificate = Certificate( tbsCertificate = tbsCertificate,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.6K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt
"37e8a844db" ).decodeHex() assertThat(okHttpCertificate).isEqualTo( Certificate( tbsCertificate = TbsCertificate( // v3. version = 2L, serialNumber = BigInteger.ONE, signature = AlgorithmIdentifier(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0)