- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for validityInterval (0.18 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt
.isCloseTo(now.toDouble() + durationMillis, deltaMillis) } @Test fun customInterval() { // 5 seconds starting on 1970-01-01. val heldCertificate = HeldCertificate.Builder() .validityInterval(5000L, 10000L) .build() val certificate = heldCertificate.certificate assertThat(certificate.notBefore.time).isEqualTo(5000L) assertThat(certificate.notAfter.time).isEqualTo(10000L) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 22.5K bytes - Viewed (0) -
okhttp-tls/api/okhttp-tls.api
public final fun serialNumber (Ljava/math/BigInteger;)Lokhttp3/tls/HeldCertificate$Builder; public final fun signedBy (Lokhttp3/tls/HeldCertificate;)Lokhttp3/tls/HeldCertificate$Builder; public final fun validityInterval (JJ)Lokhttp3/tls/HeldCertificate$Builder; } public final class okhttp3/tls/HeldCertificate$Builder$Companion { } public final class okhttp3/tls/HeldCertificate$Companion {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Feb 26 19:17:33 UTC 2022 - 3.7K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
* in the format of [System.currentTimeMillis]. Specify -1L for both values to use the default * interval, 24 hours starting when the certificate is created. */ fun validityInterval( notBefore: Long, notAfter: Long, ) = apply { require(notBefore <= notAfter && notBefore == -1L == (notAfter == -1L)) { "invalid interval: $notBefore..$notAfter" }
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
.commonName("Jurassic Park") .organizationalUnit("Gene Research") .addSubjectAlternativeName("*.example.com") .addSubjectAlternativeName("www.example.org") .validityInterval(-1000L, 2000L) .serialNumber(17L) .build() val certificateByteString = certificate.certificate.encoded.toByteString() val okHttpCertificate = CertificateAdapters.certificate
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 43.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
HeldCertificate.Builder() .signedBy(clientIntermediateCa) .serialNumber(4L) .commonName("Jethro Willis") .addSubjectAlternativeName("jethrowillis.com") .validityInterval(1, 2) .build() var client = buildClient(clientCert, clientIntermediateCa.certificate) val listener = RecordingEventListener() client = client.newBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Jan 14 10:20:09 UTC 2024 - 12.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
} @Test fun heldCertificateBuilder() { val keyPair: KeyPair = KeyPairGenerator.getInstance("").genKeyPair() var builder: HeldCertificate.Builder = HeldCertificate.Builder() builder = builder.validityInterval(0L, 0L) builder = builder.duration(0L, TimeUnit.SECONDS) builder = builder.addSubjectAlternativeName("") builder = builder.commonName("") builder = builder.organizationalUnit("")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0)