@Test public void testTrustStoreDoNotContainDuplicateSubject() { exception.expect(IllegalArgumentException.class); exception.expectMessage(containsString("2 certificates with same subject")); X509Certificate[] trustedCertificates = new X509Certificate[2]; trustedCertificates[0] = DtlsTestTools.getTrustedRootCA(); trustedCertificates[1] = DtlsTestTools.getTrustedRootCA(); StaticNewAdvancedCertificateVerifier.builder().setTrustedCertificates(trustedCertificates); }
public static Builder builder() { return new Builder(); }
DtlsConnectorConfig { public static Builder builder() { return new Builder(); } }
DtlsConnectorConfig { public static Builder builder() { return new Builder(); } private  DtlsConnectorConfig(); }
DtlsConnectorConfig { public static Builder builder() { return new Builder(); } private  DtlsConnectorConfig(); Integer getRecordSizeLimit(); Integer getMaxFragmentLengthCode(); Integer getMaxFragmentedHandshakeMessageLength(); Boolean useMultiRecordMessages(); Boolean useMultiHandshakeMessageRecords(); ProtocolVersion getProtocolVersionForHelloVerifyRequests(); Integer getRetransmissionTimeout(); Integer getMaxDeferredProcessedOutgoingApplicationDataMessages(); Integer getMaxDeferredProcessedIncomingRecordsSize(); Integer getBackOffRetransmission(); Integer getMaxRetransmissions(); Integer getMaxTransmissionUnit(); Integer getMaxTransmissionUnitLimit(); Boolean isEarlyStopRetransmission(); Boolean isAddressReuseEnabled(); Boolean isSniEnabled(); Integer getVerifyPeersOnResumptionThreshold(); ConnectionIdGenerator getConnectionIdGenerator(); Integer getOutboundMessageBufferSize(); InetSocketAddress getAddress(); List<X509Certificate> getCertificateChain(); CipherSuiteSelector getCipherSuiteSelector(); List<CipherSuite> getPreselectedCipherSuites(); List<CipherSuite> getSupportedCipherSuites(); List<SignatureAndHashAlgorithm> getSupportedSignatureAlgorithms(); List<SupportedGroup> getSupportedGroups(); PrivateKey getPrivateKey(); @Deprecated PskStore getPskStore(); AdvancedPskStore getAdvancedPskStore(); PublicKey getPublicKey(); @Deprecated X509Certificate[] getTrustStore(); @Deprecated CertificateVerifier getCertificateVerifier(); NewAdvancedCertificateVerifier getAdvancedCertificateVerifier(); ApplicationLevelInfoSupplier getApplicationLevelInfoSupplier(); Boolean isClientAuthenticationWanted(); Boolean isClientAuthenticationRequired(); Boolean isServerOnly(); String getDefaultHandshakeMode(); List<CertificateType> getIdentityCertificateTypes(); List<CertificateType> getTrustCertificateTypes(); Integer getMaxConnections(); Long getStaleConnectionThreshold(); Integer getConnectionThreadCount(); Integer getReceiverThreadCount(); Integer getSocketReceiveBufferSize(); Integer getSocketSendBufferSize(); Long getAutoResumptionTimeoutMillis(); Boolean useNoServerSessionId(); Boolean useAntiReplayFilter(); @Deprecated Boolean useWindowFilter(); Integer useExtendedWindowFilter(); Boolean useCidUpdateAddressOnNewerRecordFilter(); @Deprecated TrustedRpkStore getRpkTrustStore(); Boolean useHandshakeStateValidation(); Boolean useKeyUsageVerification(); Boolean useTruncatedCertificatePathForClientsCertificateMessage(); Boolean useTruncatedCertificatePathForValidation(); ConnectionListener getConnectionListener(); String getLoggingTag(); Integer getHealthStatusInterval(); DtlsHealth getHealthHandler(); Boolean isClientOnly(); Boolean isRecommendedCipherSuitesOnly(); Boolean isRecommendedSupportedGroupsOnly(); static Builder builder(); static Builder builder(DtlsConnectorConfig config); }
DtlsConnectorConfig { public static Builder builder() { return new Builder(); } private  DtlsConnectorConfig(); Integer getRecordSizeLimit(); Integer getMaxFragmentLengthCode(); Integer getMaxFragmentedHandshakeMessageLength(); Boolean useMultiRecordMessages(); Boolean useMultiHandshakeMessageRecords(); ProtocolVersion getProtocolVersionForHelloVerifyRequests(); Integer getRetransmissionTimeout(); Integer getMaxDeferredProcessedOutgoingApplicationDataMessages(); Integer getMaxDeferredProcessedIncomingRecordsSize(); Integer getBackOffRetransmission(); Integer getMaxRetransmissions(); Integer getMaxTransmissionUnit(); Integer getMaxTransmissionUnitLimit(); Boolean isEarlyStopRetransmission(); Boolean isAddressReuseEnabled(); Boolean isSniEnabled(); Integer getVerifyPeersOnResumptionThreshold(); ConnectionIdGenerator getConnectionIdGenerator(); Integer getOutboundMessageBufferSize(); InetSocketAddress getAddress(); List<X509Certificate> getCertificateChain(); CipherSuiteSelector getCipherSuiteSelector(); List<CipherSuite> getPreselectedCipherSuites(); List<CipherSuite> getSupportedCipherSuites(); List<SignatureAndHashAlgorithm> getSupportedSignatureAlgorithms(); List<SupportedGroup> getSupportedGroups(); PrivateKey getPrivateKey(); @Deprecated PskStore getPskStore(); AdvancedPskStore getAdvancedPskStore(); PublicKey getPublicKey(); @Deprecated X509Certificate[] getTrustStore(); @Deprecated CertificateVerifier getCertificateVerifier(); NewAdvancedCertificateVerifier getAdvancedCertificateVerifier(); ApplicationLevelInfoSupplier getApplicationLevelInfoSupplier(); Boolean isClientAuthenticationWanted(); Boolean isClientAuthenticationRequired(); Boolean isServerOnly(); String getDefaultHandshakeMode(); List<CertificateType> getIdentityCertificateTypes(); List<CertificateType> getTrustCertificateTypes(); Integer getMaxConnections(); Long getStaleConnectionThreshold(); Integer getConnectionThreadCount(); Integer getReceiverThreadCount(); Integer getSocketReceiveBufferSize(); Integer getSocketSendBufferSize(); Long getAutoResumptionTimeoutMillis(); Boolean useNoServerSessionId(); Boolean useAntiReplayFilter(); @Deprecated Boolean useWindowFilter(); Integer useExtendedWindowFilter(); Boolean useCidUpdateAddressOnNewerRecordFilter(); @Deprecated TrustedRpkStore getRpkTrustStore(); Boolean useHandshakeStateValidation(); Boolean useKeyUsageVerification(); Boolean useTruncatedCertificatePathForClientsCertificateMessage(); Boolean useTruncatedCertificatePathForValidation(); ConnectionListener getConnectionListener(); String getLoggingTag(); Integer getHealthStatusInterval(); DtlsHealth getHealthHandler(); Boolean isClientOnly(); Boolean isRecommendedCipherSuitesOnly(); Boolean isRecommendedSupportedGroupsOnly(); static Builder builder(); static Builder builder(DtlsConnectorConfig config); static final int DEFAULT_MAX_DEFERRED_PROCESSED_APPLICATION_DATA_MESSAGES; static final int DEFAULT_MAX_CONNECTIONS; static final int DEFAULT_MAX_FRAGMENTED_HANDSHAKE_MESSAGE_LENGTH; static final int DEFAULT_MAX_DEFERRED_PROCESSED_HANDSHAKE_RECORDS_SIZE; static final long DEFAULT_STALE_CONNECTION_TRESHOLD; static final int DEFAULT_RETRANSMISSION_TIMEOUT_MS; static final int DEFAULT_MAX_RETRANSMISSIONS; static final int DEFAULT_VERIFY_PEERS_ON_RESUMPTION_THRESHOLD_IN_PERCENT; static final int DEFAULT_MAX_TRANSMISSION_UNIT_LIMIT; }