Class SslIdentificationAlgorithmTest


  • public class SslIdentificationAlgorithmTest
    extends Object
    Test SNI matching scenarios. (tests for DIRMINA-1122)
     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 Detail

      • SslIdentificationAlgorithmTest

        public SslIdentificationAlgorithmTest()
    • Method Detail

      • setUp

        public void setUp()
      • shouldAuthenticateWhenServerCertificateCommonNameMatchesClientSNI

        public void shouldAuthenticateWhenServerCertificateCommonNameMatchesClientSNI()
                                                                               throws Exception
        Throws:
        Exception
      • shouldFailAuthenticationWhenServerCertificateCommonNameDoesNotMatchClientSNI

        public void shouldFailAuthenticationWhenServerCertificateCommonNameDoesNotMatchClientSNI()
                                                                                          throws Exception
        Throws:
        Exception
      • shouldFailAuthenticationWhenClientMissingSNIAndIdentificationAlgorithmProvided

        public void shouldFailAuthenticationWhenClientMissingSNIAndIdentificationAlgorithmProvided()
                                                                                            throws Exception
        Throws:
        Exception
      • shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIExactly

        public void shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIExactly()
                                                                                           throws Exception
        Subject Alternative Name (SAN) scenarios
        Throws:
        Exception
      • shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIViaWildcard

        public void shouldAuthenticateWhenServerCertificateAlternativeNameMatchesClientSNIViaWildcard()
                                                                                               throws Exception
        Throws:
        Exception
      • shouldFailAuthenticationWhenServerCommonNameMatchesSNIAndSNINotInAlternativeName

        public void shouldFailAuthenticationWhenServerCommonNameMatchesSNIAndSNINotInAlternativeName()
                                                                                              throws Exception
        Throws:
        Exception
      • shouldFailAuthenticationWhenMatchingAlternativeNameWildcardExactly

        public void shouldFailAuthenticationWhenMatchingAlternativeNameWildcardExactly()
                                                                                throws Exception
        Throws:
        Exception
      • shouldFailAuthenticationWhenMatchingAlternativeNameWithTooManyLabels

        public void shouldFailAuthenticationWhenMatchingAlternativeNameWithTooManyLabels()
                                                                                  throws Exception
        Throws:
        Exception