public class TrustEngineX509TrustManagerTest extends Object
TrustEngineX509TrustManager implementation.| Modifier and Type | Field and Description |
|---|---|
private String |
context
LDAP DN to test.
|
private static String |
DATA_PATH |
private InMemoryDirectory |
directoryServer |
| Constructor and Description |
|---|
TrustEngineX509TrustManagerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSearch(Connection conn) |
void |
setupDirectoryServer()
Creates an UnboundID in-memory directory server.
|
void |
teardownDirectoryServer()
Shutdown the in-memory directory server.
|
void |
testDefaultTrust()
Make sure default trust fails.
|
void |
testNullTrust()
No trust engine.
|
void |
testStaticTrust()
Static trust engine.
|
private static final String DATA_PATH
private InMemoryDirectory directoryServer
private final String context
public void setupDirectoryServer()
throws IOException,
com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPException - if the in-memory directory server cannot be createdIOExceptionpublic void teardownDirectoryServer()
public void testDefaultTrust()
throws LdapException
LdapExceptionpublic void testNullTrust()
throws LdapException
LdapExceptionpublic void testStaticTrust()
throws LdapException,
FileNotFoundException,
IOException
protected void doSearch(@Nonnull Connection conn) throws LdapException
LdapExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.