Class ClientCertAuthenticationBase
java.lang.Object
org.wildfly.elytron.web.undertow.common.AbstractHttpServerMechanismTest
org.wildfly.elytron.web.undertow.common.ClientCertAuthenticationBase
Test case for CLIENT_CERT authentication.
- Author:
- Darran Lofthouse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprotected abstract UndertowServerprotected abstract UndertowServerprotected org.wildfly.security.auth.server.SecurityDomainprotected X509TrustManagerGet the trust manager that trusts all certificates signed by the certificate authority.protected X509ExtendedKeyManagergetKeyManager(String keystorePath) Get the key manager backed by the specified key store.protected Stringprotected SSLContextgetSSLContext(boolean authenticate) voidvoidvoidvoidMethods inherited from class org.wildfly.elytron.web.undertow.common.AbstractHttpServerMechanismTest
assertLoginPage, assertSuccessfulResponse, assertSuccessfulUnconstraintResponse, getHttpServerAuthenticationMechanismFactory, getSecurityDomain, installProvider, removeProvider
-
Field Details
-
serverA
-
serverB
-
-
Constructor Details
-
ClientCertAuthenticationBase
- Throws:
Exception
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
IOException
-
testSuccessfulAuthentication
- Throws:
Exception
-
testClientCertAfterSession
- Throws:
Exception
-
testSSLSessionIdentityCacheHit
- Throws:
Exception
-
testFailedAuthentication
- Throws:
Exception
-
getMechanismName
- Specified by:
getMechanismNamein classAbstractHttpServerMechanismTest
-
doCreateSecurityDomain
- Specified by:
doCreateSecurityDomainin classAbstractHttpServerMechanismTest- Throws:
Exception
-
getKeyManager
Get the key manager backed by the specified key store.- Parameters:
keystorePath- the path to the key store to load.- Returns:
- the initialised key manager.
- Throws:
Exception
-
getCATrustManager
Get the trust manager that trusts all certificates signed by the certificate authority.- Returns:
- the trust manager that trusts all certificates signed by the certificate authority.
- Throws:
KeyStoreExceptionException
-
getSSLContext
- Throws:
GeneralSecurityExceptionException
-
createUndertowServerA
- Throws:
Exception
-
createUndertowServerB
- Throws:
Exception
-