Class WebAuthRequestCollection.WebAuthRequestBuilder<T extends WebAuthRequestCollection.WebAuthRequestBuilder<T>>
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.auth.web.WebAuthRequestCollection.WebAuthRequestBuilder<T>
 
- 
- Direct Known Subclasses:
- WebAuthRequestCollection.LoginRequestBuilder,- WebAuthRequestCollection.LogoutRequestBuilder
 - Enclosing class:
- WebAuthRequestCollection
 
 public abstract class WebAuthRequestCollection.WebAuthRequestBuilder<T extends WebAuthRequestCollection.WebAuthRequestBuilder<T>> extends java.lang.ObjectProvides a fluent-API (builder-style) pattern for creating new web auth requests encoded as aURI
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URIbuild()Builds a new Web Auth Request from this builder's paramsTsetApp(java.lang.String app)TsetErrorRedirectUri(java.net.URI errorRedirectUri)TsetHandler(WebAuthRequestCollection.WebAuthResponseHandler handler)TsetIdp(java.lang.String idp)TsetNativeApp(java.lang.Boolean nativeApp)TsetRequestUri(java.net.URI requestUri)TsetTimeout(java.lang.Integer timeout)
 
- 
- 
- 
Method Detail- 
setIdp@Nonnull public T setIdp(@Nonnull java.lang.String idp) - Parameters:
- idp- the name of the IdP into which the user should login
- Returns:
- this builder
 
 - 
setApp@Nonnull public T setApp(@Nonnull java.lang.String app) - Parameters:
- app- the name of the app the user is logging into
- Returns:
- this builder
 
 - 
setRequestUri@Nonnull public T setRequestUri(@Nonnull java.net.URI requestUri) - Parameters:
- requestUri- the incoming HTTP Request- URIwhich triggered this login request
- Returns:
- this builder
 
 - 
setHandler@Nonnull public T setHandler(@Nonnull WebAuthRequestCollection.WebAuthResponseHandler handler) - Parameters:
- handler- the- WebAuthRequestCollection.WebAuthResponseHandlerto handle the web auth response for this request
- Returns:
- this builder
 
 - 
setErrorRedirectUri@Nonnull public T setErrorRedirectUri(@Nullable java.net.URI errorRedirectUri) - Parameters:
- errorRedirectUri- an optional- URIto redirect the user if there is an error handling the web auth response. a value of null means there is no error redirect- URIset.
- Returns:
- this builder
 
 - 
setNativeApp@Nonnull public T setNativeApp(@Nullable java.lang.Boolean nativeApp) - Parameters:
- nativeApp- trigger the native app authentication flow
- Returns:
- this builder
 
 - 
setTimeout@Nonnull public T setTimeout(@Nullable java.lang.Integer timeout) - Parameters:
- timeout- time in minutes to wait for the response before giving up
- Returns:
- this builder
 
 - 
build@Nonnull public java.net.URI build() throws java.lang.ExceptionBuilds a new Web Auth Request from this builder's params- Returns:
- the URIto which the user should be redirected in order to login at the IdP
- Throws:
- java.lang.NullPointerException- if any of the following were not set on this builder: IdP name, app name, requestUri, or handler
- NotFoundException- if an IdP with the given name does not exist
- java.lang.Exception- if there is an unexpected problem creating the new web auth request
 
 
- 
 
-