Class DuoSDKClientFactory
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.plugin.authn.duo.sdk.impl.DuoSDKClientFactory
-
- All Implemented Interfaces:
DuoOIDCClientFactory,Component,DestructableComponent,InitializableComponent
@ThreadSafe public final class DuoSDKClientFactory extends AbstractInitializableComponent implements DuoOIDCClientFactory
Abstract factory implementation for theDuoSDKClientAdaptor.
-
-
Constructor Summary
Constructors Constructor Description DuoSDKClientFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DuoOIDCClientcreateInstance(DuoOIDCIntegration integration)private List<String>getCaCerts()Get the caCerts, guarded by this objects monitor.voidsetCaCerts(List<String> certs)Sets the list of CA certificate pins used to verify the Duo client connection to the API host.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
caCerts
@Nullable @NonnullElements @Unmodifiable private List<String> caCerts
List of CA Certificate pins. If null, the client's default set are used.
-
-
Method Detail
-
setCaCerts
public void setCaCerts(@Nullable List<String> certs)Sets the list of CA certificate pins used to verify the Duo client connection to the API host. Ifnull, the client will use the internal defaults.- Parameters:
certs- the list of certificate pins.
-
getCaCerts
@Nullable @NonnullElements @Unmodifiable private List<String> getCaCerts()
Get the caCerts, guarded by this objects monitor.- Returns:
- the caCerts.
-
createInstance
@Nonnull public DuoOIDCClient createInstance(@Nonnull DuoOIDCIntegration integration) throws DuoClientException
- Specified by:
createInstancein interfaceDuoOIDCClientFactory- Throws:
DuoClientException
-
-