public class BasicDuoIntegration extends AbstractInitializableComponent implements DuoIntegration
| Modifier and Type | Field and Description |
|---|---|
private String |
apiHost
API host.
|
private String |
applicationKey
Application key.
|
private String |
integrationKey
Integration key.
|
private String |
secretKey
Secret key.
|
private Subject |
supportedPrincipals
Container for supported principals.
|
| Constructor and Description |
|---|
BasicDuoIntegration()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize() |
String |
getAPIHost()
Get the name of the API host to contact.
|
String |
getApplicationKey()
Get the application key.
|
String |
getIntegrationKey()
Get the integration key.
|
String |
getSecretKey()
Get the secret key.
|
<T extends Principal> |
getSupportedPrincipals(Class<T> c)
Get an immutable set of supported custom principals that the component produces, supports, contains, etc.
|
void |
setAPIHost(String host)
Set the API host to use.
|
void |
setApplicationKey(String key)
Set the application key to use.
|
void |
setIntegrationKey(String key)
Set the integration key to use.
|
void |
setSecretKey(String key)
Set the secret key to use.
|
<T extends Principal> |
setSupportedPrincipals(Collection<T> principals)
Set supported non-user-specific principals that the action will include in the subjects
it generates, in place of any default principals from the flow.
|
destroy, doDestroy, initialize, isDestroyed, isInitialized@NonnullAfterInit @NotEmpty private String apiHost
@NonnullAfterInit @NotEmpty private String applicationKey
@NonnullAfterInit @NotEmpty private String integrationKey
@NonnullAfterInit @NotEmpty private String secretKey
@Nonnull @NotEmpty public String getAPIHost()
getAPIHost in interface DuoIntegrationpublic void setAPIHost(@Nonnull@NotEmpty String host)
host - API host@Nonnull @NotEmpty public String getApplicationKey()
getApplicationKey in interface DuoIntegrationpublic void setApplicationKey(@Nonnull@NotEmpty String key)
key - application key@Nonnull @NotEmpty public String getIntegrationKey()
getIntegrationKey in interface DuoIntegrationpublic void setIntegrationKey(@Nonnull@NotEmpty String key)
key - integration key@Nonnull @NotEmpty public String getSecretKey()
getSecretKey in interface DuoIntegrationpublic void setSecretKey(@Nonnull@NotEmpty String key)
key - secret key@Nonnull @NonnullElements @Unmodifiable public <T extends Principal> Set<T> getSupportedPrincipals(@Nonnull Class<T> c)
getSupportedPrincipals in interface PrincipalSupportingComponentT - type of Principal to inquire onc - type of Principal to inquire onpublic <T extends Principal> void setSupportedPrincipals(@Nullable@NonnullElements Collection<T> principals)
Setting to a null or empty collection will maintain the default behavior of relying on the flow.
T - a type of principal to add, if not genericprincipals - supported principals to includeprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.