Class SimpleDuoOIDCIntegration
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.plugin.authn.duo.SimpleDuoOIDCIntegration
- All Implemented Interfaces:
PrincipalSupportingComponent,DuoOIDCIntegration,Component,DestructableComponent,InitializableComponent
@ThreadSafe
@Deprecated(forRemoval=true,
since="2.1.0")
public final class SimpleDuoOIDCIntegration
extends AbstractInitializableComponent
implements DuoOIDCIntegration
Deprecated, for removal: This API element is subject to removal in a future version.
A data wrapper for use with Duo OIDC integrations which does not support redirectURI generation.
This class was replaced by the DefaultDuoOIDCIntegration subclass.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDeprecated, for removal: This API element is subject to removal in a future version.API host.private StringDeprecated, for removal: This API element is subject to removal in a future version.The URL path to the authorization endpoint.private StringDeprecated, for removal: This API element is subject to removal in a future version.Integration key.private StringDeprecated, for removal: This API element is subject to removal in a future version.The URL path to the health endpoint.private booleanDeprecated, for removal: This API element is subject to removal in a future version.Passwordless indicator.private StringDeprecated, for removal: This API element is subject to removal in a future version.The used (by clients) redirect_uri to send the client after authorisation .private StringDeprecated, for removal: This API element is subject to removal in a future version.Secret key.private final SubjectDeprecated, for removal: This API element is subject to removal in a future version.Container for supported principals.private StringDeprecated, for removal: This API element is subject to removal in a future version.The URL path to the token endpoint. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the name of the API host to contact.Deprecated, for removal: This API element is subject to removal in a future version.Get the path of the authorization endpoint.Deprecated, for removal: This API element is subject to removal in a future version.Get the clientId key.Deprecated, for removal: This API element is subject to removal in a future version.Get the path of the health check endpoint.Deprecated, for removal: This API element is subject to removal in a future version.Get the runtime redirectURI to direct the client to after authorisation.Deprecated, for removal: This API element is subject to removal in a future version.Get the secret key.getSupportedPrincipals(Class<T> c) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the path of the token endpoint.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.Gets whether the integration is suitable for use as a passwordless single factor.voidsetAPIHost(String host) Deprecated, for removal: This API element is subject to removal in a future version.Set the API host to use.voidsetAuthorizeEndpoint(String endpoint) Deprecated, for removal: This API element is subject to removal in a future version.Set the authorize endpoint URL path.voidsetClientId(String id) Deprecated, for removal: This API element is subject to removal in a future version.Set the client ID to use.voidsetHealthCheckEndpoint(String endpoint) Deprecated, for removal: This API element is subject to removal in a future version.Set the health check endpoint URL path.voidsetPasswordless(boolean flag) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether this integration is suitable for use as a single factor.voidsetRedirectURI(String url) Deprecated, for removal: This API element is subject to removal in a future version.Set the redirect URI.voidsetSecretKey(String key) Deprecated, for removal: This API element is subject to removal in a future version.Set the secret key to use.<T extends Principal>
voidsetSupportedPrincipals(Collection<T> principals) Deprecated, for removal: This API element is subject to removal in a future version.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.voidsetTokenEndpoint(String endpoint) Deprecated, for removal: This API element is subject to removal in a future version.Set the token endpoint URL path.toString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.shibboleth.idp.plugin.authn.duo.DuoOIDCIntegration
getAllowedFactors, getContextToPrincipalMappingStrategy
-
Field Details
-
passwordless
private boolean passwordlessDeprecated, for removal: This API element is subject to removal in a future version.Passwordless indicator. -
apiHost
Deprecated, for removal: This API element is subject to removal in a future version.API host. -
clientId
Deprecated, for removal: This API element is subject to removal in a future version.Integration key. -
secretKey
Deprecated, for removal: This API element is subject to removal in a future version.Secret key. -
redirectURI
Deprecated, for removal: This API element is subject to removal in a future version.The used (by clients) redirect_uri to send the client after authorisation . -
healthEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.The URL path to the health endpoint. -
authorizeEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.The URL path to the authorization endpoint. -
tokenEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.The URL path to the token endpoint. -
supportedPrincipals
Deprecated, for removal: This API element is subject to removal in a future version.Container for supported principals.
-
-
Constructor Details
-
SimpleDuoOIDCIntegration
public SimpleDuoOIDCIntegration()Deprecated, for removal: This API element is subject to removal in a future version.Constructor.
-
-
Method Details
-
setPasswordless
public void setPasswordless(boolean flag) Deprecated, for removal: This API element is subject to removal in a future version.Sets whether this integration is suitable for use as a single factor.Defaults to false.
- Parameters:
flag- flag to set- Since:
- 2.1.0
-
isPasswordless
public boolean isPasswordless()Deprecated, for removal: This API element is subject to removal in a future version.Gets whether the integration is suitable for use as a passwordless single factor.Defaults to false.
- Specified by:
isPasswordlessin interfaceDuoOIDCIntegration- Returns:
- true iff the integration limits methods to passwordless
-
getAPIHost
Deprecated, for removal: This API element is subject to removal in a future version.Get the name of the API host to contact.- Specified by:
getAPIHostin interfaceDuoOIDCIntegration- Returns:
- name of API host
-
setAPIHost
Deprecated, for removal: This API element is subject to removal in a future version.Set the API host to use.- Parameters:
host- API host
-
getHealthCheckEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Get the path of the health check endpoint.- Specified by:
getHealthCheckEndpointin interfaceDuoOIDCIntegration- Returns:
- the path of the health check endpoint
-
setHealthCheckEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Set the health check endpoint URL path.- Parameters:
endpoint- the endpoint.
-
getAuthorizeEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Get the path of the authorization endpoint.- Specified by:
getAuthorizeEndpointin interfaceDuoOIDCIntegration- Returns:
- the path of the authorization endpoint
-
setAuthorizeEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Set the authorize endpoint URL path.- Parameters:
endpoint- the endpoint.
-
getTokenEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Get the path of the token endpoint.- Specified by:
getTokenEndpointin interfaceDuoOIDCIntegration- Returns:
- the path of the token endpoint;
-
setTokenEndpoint
Deprecated, for removal: This API element is subject to removal in a future version.Set the token endpoint URL path.- Parameters:
endpoint- the endpoint.
-
getRedirectURI
Deprecated, for removal: This API element is subject to removal in a future version.Get the runtime redirectURI to direct the client to after authorisation.- Specified by:
getRedirectURIin interfaceDuoOIDCIntegration- Returns:
- the redirectURI
-
setRedirectURI
Deprecated, for removal: This API element is subject to removal in a future version.Set the redirect URI.- Parameters:
url- the url.
-
setClientId
Deprecated, for removal: This API element is subject to removal in a future version.Set the client ID to use.- Parameters:
id- the client identifier.
-
getClientId
Deprecated, for removal: This API element is subject to removal in a future version.Get the clientId key.- Specified by:
getClientIdin interfaceDuoOIDCIntegration- Returns:
- the integration key
-
setSecretKey
Deprecated, for removal: This API element is subject to removal in a future version.Set the secret key to use.- Parameters:
key- secret key
-
getSecretKey
Deprecated, for removal: This API element is subject to removal in a future version.Get the secret key.- Specified by:
getSecretKeyin interfaceDuoOIDCIntegration- Returns:
- the secret key
-
getSupportedPrincipals
@Nonnull @NonnullElements @Unmodifiable public <T extends Principal> Set<T> getSupportedPrincipals(@Nonnull Class<T> c) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getSupportedPrincipalsin interfacePrincipalSupportingComponent
-
setSupportedPrincipals
public <T extends Principal> void setSupportedPrincipals(@Nullable @NonnullElements Collection<T> principals) Deprecated, for removal: This API element is subject to removal in a future version.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.Setting to a null or empty collection will maintain the default behavior of relying on the flow.
- Type Parameters:
T- a type of principal to add, if not generic- Parameters:
principals- supported principals to include
-
doInitialize
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
toString
Deprecated, for removal: This API element is subject to removal in a future version.
-