Class DefaultDuoOIDCIntegration

    • Constructor Detail

      • DefaultDuoOIDCIntegration

        public DefaultDuoOIDCIntegration()
        Constructor.
    • Method Detail

      • setAllowedOrigins

        public void setAllowedOrigins​(@Nullable @NonnullElements
                                      Collection<String> hosts)
        Set the origins that are allowed to form the scheme, host, and port part of a computed redirect_uri.
        Parameters:
        hosts - the hostnames to allow.
      • setAPIHost

        public void setAPIHost​(@Nonnull @NotEmpty
                               String host)
        Set the API host to use.
        Parameters:
        host - API host
      • setHealthCheckEndpoint

        public void setHealthCheckEndpoint​(@Nonnull @NotEmpty
                                           String endpoint)
        Set the health check endpoint URL path.
        Parameters:
        endpoint - the endpoint.
      • setAuthorizeEndpoint

        public void setAuthorizeEndpoint​(@Nonnull @NotEmpty
                                         String endpoint)
        Set the authorize endpoint URL path.
        Parameters:
        endpoint - the endpoint.
      • setTokenEndpoint

        public void setTokenEndpoint​(@Nonnull @NotEmpty
                                     String endpoint)
        Set the token endpoint URL path.
        Parameters:
        endpoint - the endpoint.
      • setRedirectURI

        public void setRedirectURI​(@Nullable
                                   String uri)
        Set the redirect_uri to use.
        Parameters:
        uri - the redirect_uri
      • setRegisteredRedirectURI

        public void setRegisteredRedirectURI​(@Nullable
                                             String uri)
        Set the redirect_uri to use.
        Parameters:
        uri - the redirect_uri
      • setRedirectURIIfAbsent

        @Nonnull
        @NotEmpty
        public void setRedirectURIIfAbsent​(@Nonnull @NotEmpty
                                           String computedRedirectURI)
        Description copied from interface: DuoOIDCIntegration

        Set the redirectURI from one in a thread-safe way.

        This is a sate changing operation, and should be thread-safe in its operation, as the integration will be shared amongst threads e.g. syncrhonize the method call.

        Specified by:
        setRedirectURIIfAbsent in interface DuoOIDCIntegration
        Parameters:
        computedRedirectURI - the runtime computed redirectURI.
      • setClientId

        public void setClientId​(@Nonnull @NotEmpty
                                String id)
        Set the client ID to use.
        Parameters:
        id - the client identifier.
      • setSecretKey

        public void setSecretKey​(@Nonnull @NotEmpty
                                 String key)
        Set the secret key to use.
        Parameters:
        key - secret key
      • getSupportedPrincipals

        @Nonnull
        @NonnullElements
        @Unmodifiable
        public <T extends PrincipalSet<T> getSupportedPrincipals​(@Nonnull
                                                                   Class<T> c)
        Specified by:
        getSupportedPrincipals in interface net.shibboleth.idp.authn.principal.PrincipalSupportingComponent
      • setSupportedPrincipals

        public <T extends Principal> void setSupportedPrincipals​(@Nullable @NonnullElements
                                                                 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.

        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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object