public class SslIdentificationAlgorithmTest extends Object
emptykeystore.sslTest - empty keystore server-cn.keystore - keystore with single certificate chain (CN=mina) client-cn.truststore - keystore with trusted certificate server-san-ext.keystore - keystore with single certificate chain (CN=mina;SAN=*.bbb.ccc,xxx.yyy) client-san-ext.truststore - keystore with trusted certificate
Constructor and Description |
---|
SslIdentificationAlgorithmTest() |
Modifier and Type | Method and Description |
---|---|
void |
setUp() |
void |
shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIExactly()
Subject Alternative Name (SAN) scenarios
|
void |
shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIViaWildcard() |
void |
shouldAuthenticateWhenServerCertificateCommonNameMatchesClientSNI() |
void |
shouldFailAuthenticationWhenClientMissingSNIAndIdentificationAlgorithmProvided() |
void |
shouldFailAuthenticationWhenMatchingAlternativeNameWildcardExactly() |
void |
shouldFailAuthenticationWhenMatchingAlternativeNameWithTooManyLabels() |
void |
shouldFailAuthenticationWhenServerCertificateCommonNameDoesNotMatchClientSNI() |
void |
shouldFailAuthenticationWhenServerCommonNameMatchesSNIAndSNINotInAlternativeName() |
public void setUp()
public void shouldAuthenticateWhenServerCertificateCommonNameMatchesClientSNI() throws Exception
Exception
public void shouldFailAuthenticationWhenServerCertificateCommonNameDoesNotMatchClientSNI() throws Exception
Exception
public void shouldFailAuthenticationWhenClientMissingSNIAndIdentificationAlgorithmProvided() throws Exception
Exception
public void shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIExactly() throws Exception
Exception
- If the test failspublic void shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIViaWildcard() throws Exception
Exception
public void shouldFailAuthenticationWhenServerCommonNameMatchesSNIAndSNINotInAlternativeName() throws Exception
Exception
public void shouldFailAuthenticationWhenMatchingAlternativeNameWildcardExactly() throws Exception
Exception
Copyright © 2004–2023 Apache MINA Project. All rights reserved.