Class ResolverServiceClientSecretValueResolverTest
- java.lang.Object
-
- net.shibboleth.oidc.metadata.impl.BaseClientSecretValueResolverTest<net.shibboleth.oidc.metadata.impl.ResolverServiceClientSecretValueResolver>
-
- net.shibboleth.oidc.metadata.impl.ResolverServiceClientSecretValueResolverTest
-
public class ResolverServiceClientSecretValueResolverTest extends BaseClientSecretValueResolverTest<net.shibboleth.oidc.metadata.impl.ResolverServiceClientSecretValueResolver>
Unit tests forResolverServiceClientSecretValueResolver. Based onidp-attribute-resolver-spring
/net.shibboleth.idp.attribute.resolver.spring.AttributeResolverTest
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringclientSecretKeyReferenceBoth(package private) StringclientSecretKeyReferenceOnlyLdap(package private) StringclientSecretValueLdap(package private) StringclientSecretValueRdbmsprivate static StringDB_DATA_FILEDatabase population.private static StringDB_INIT_FILEDatabase initialization.private com.unboundid.ldap.listener.InMemoryDirectoryServerdirectoryServerLDAP(package private) StringentityId(package private) StringentityId2private static StringLDAP_INIT_FILELDAP initialization.private GenericApplicationContextpendingTeardownContextprivate static StringSERVICE_CONF_FILEThe resolver service configuration.-
Fields inherited from class net.shibboleth.oidc.metadata.impl.BaseClientSecretValueResolverTest
resolver
-
-
Constructor Summary
Constructors Constructor Description ResolverServiceClientSecretValueResolverTest()
-
Method Summary
-
Methods inherited from class net.shibboleth.oidc.metadata.impl.BaseClientSecretValueResolverTest
buildCriteriaSet, resolve_shouldThrowIfCalledAfterDestroy, resolve_shouldThrowIfCalledBeforeInit, resolveSingle_shouldThrowIfCalledAfterDestroy, resolveSingle_shouldThrowIfCalledBeforeInit
-
-
-
-
Field Detail
-
directoryServer
private com.unboundid.ldap.listener.InMemoryDirectoryServer directoryServer
LDAP
-
LDAP_INIT_FILE
private static final String LDAP_INIT_FILE
LDAP initialization.- See Also:
- Constant Field Values
-
DB_INIT_FILE
private static final String DB_INIT_FILE
Database initialization.- See Also:
- Constant Field Values
-
DB_DATA_FILE
private static final String DB_DATA_FILE
Database population.- See Also:
- Constant Field Values
-
SERVICE_CONF_FILE
private static final String SERVICE_CONF_FILE
The resolver service configuration.- See Also:
- Constant Field Values
-
pendingTeardownContext
private GenericApplicationContext pendingTeardownContext
-
entityId
String entityId
-
entityId2
String entityId2
-
clientSecretKeyReferenceBoth
String clientSecretKeyReferenceBoth
-
clientSecretKeyReferenceOnlyLdap
String clientSecretKeyReferenceOnlyLdap
-
clientSecretValueRdbms
String clientSecretValueRdbms
-
clientSecretValueLdap
String clientSecretValueLdap
-
-
Method Detail
-
tearDownTestContext
@AfterMethod public void tearDownTestContext()
-
setTestContext
protected void setTestContext(GenericApplicationContext context)
-
setupDataConnectors
@BeforeTest public void setupDataConnectors() throws com.unboundid.ldap.sdk.LDAPException
- Throws:
com.unboundid.ldap.sdk.LDAPException
-
teardownDataConnectors
@AfterTest public void teardownDataConnectors()
Shutdown the in-memory directory server.
-
getResolver
protected ReloadableService<net.shibboleth.idp.attribute.resolver.AttributeResolver> getResolver()
-
initialize_shouldThrowWhenAttributeResolverNotSet
public void initialize_shouldThrowWhenAttributeResolverNotSet() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
setAttributeResolver_shouldThrowIfAttributeResolverIsNull
public void setAttributeResolver_shouldThrowIfAttributeResolverIsNull()
-
setAttributeResolver_shouldThrowAfterInit
public void setAttributeResolver_shouldThrowAfterInit() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
setAttributeIds_shouldThrowIfAttributeIdsNull
public void setAttributeIds_shouldThrowIfAttributeIdsNull() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
setAttributeIds_shouldThrowIfAttributeIdsEmpty
public void setAttributeIds_shouldThrowIfAttributeIdsEmpty() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
setAttributeIds_shouldThrowAfterInit
public void setAttributeIds_shouldThrowAfterInit() throws ComponentInitializationException- Throws:
ComponentInitializationException
-
resolveSingle_shouldReturnNullWhenValuesNotFound
public void resolveSingle_shouldReturnNullWhenValuesNotFound() throws ResolverException, ComponentInitializationException
-
resolveSingle_shouldReturnRdbmsValueWhenFound
public void resolveSingle_shouldReturnRdbmsValueWhenFound() throws ResolverException, ComponentInitializationException
-
resolveSingle_shouldReturnLdapValueWhenFound
public void resolveSingle_shouldReturnLdapValueWhenFound() throws ResolverException, ComponentInitializationException
-
resolveSingle_shouldReturnLdapValueWhenOnlyFoundFromLdap
public void resolveSingle_shouldReturnLdapValueWhenOnlyFoundFromLdap() throws ResolverException, ComponentInitializationException
-
resolve_shouldReturnEmptyIteratorWhenValuesNotFound
public void resolve_shouldReturnEmptyIteratorWhenValuesNotFound() throws ResolverException, ComponentInitializationException
-
resolve_shouldReturnOneValueIteratorWhenSingleValueFound
public void resolve_shouldReturnOneValueIteratorWhenSingleValueFound() throws ResolverException, ComponentInitializationException
-
resolve_shouldReturnTwoValueIteratorWhenFoundFromBoth
public void resolve_shouldReturnTwoValueIteratorWhenFoundFromBoth() throws ResolverException, ComponentInitializationException
-
buildResolver
protected net.shibboleth.oidc.metadata.impl.ResolverServiceClientSecretValueResolver buildResolver(boolean init) throws ComponentInitializationException- Specified by:
buildResolverin classBaseClientSecretValueResolverTest<net.shibboleth.oidc.metadata.impl.ResolverServiceClientSecretValueResolver>- Throws:
ComponentInitializationException
-
buildResolver
protected net.shibboleth.oidc.metadata.impl.ResolverServiceClientSecretValueResolver buildResolver(boolean init, List<String> attributeIds) throws ComponentInitializationException- Throws:
ComponentInitializationException
-
buildCriteriaSet
protected CriteriaSet buildCriteriaSet(String secretReference, String clientId)
-
-