Class StitchAuthRequest
- java.lang.Object
-
- com.mongodb.stitch.core.internal.net.StitchRequest
-
- com.mongodb.stitch.core.internal.net.StitchAuthRequest
-
- Direct Known Subclasses:
StitchAuthDocRequest
public class StitchAuthRequest extends StitchRequest
AStitchRequest
that is authenticated by a logged in user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StitchAuthRequest.Builder
A builder that can buildStitchAuthRequest
s.
-
Method Summary
Modifier and Type Method Description StitchAuthRequest.Builder
builder()
Returns a copy of this request in builder form.boolean
equals(Object object)
boolean
getShouldRefreshOnFailure()
Returns whether or not the performer of this request should attempt to refresh authentication info on failure.boolean
getUseRefreshToken()
Returns whether or not a refresh token should be used in this request.int
hashCode()
-
Methods inherited from class com.mongodb.stitch.core.internal.net.StitchRequest
getBody, getHeaders, getMethod, getPath, getStartedAt, getTimeout, toString
-
-
-
-
Method Detail
-
getUseRefreshToken
public boolean getUseRefreshToken()
Returns whether or not a refresh token should be used in this request.- Returns:
- whether or not a refresh token should be used in this request.
-
getShouldRefreshOnFailure
public boolean getShouldRefreshOnFailure()
Returns whether or not the performer of this request should attempt to refresh authentication info on failure.- Returns:
- whether or not the performer of this request should attempt to refresh authentication info on failure.
-
builder
public StitchAuthRequest.Builder builder()
Returns a copy of this request in builder form.- Overrides:
builder
in classStitchRequest
- Returns:
- a copy of this request in builder form.
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classStitchRequest
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classStitchRequest
-
-