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
AStitchRequestthat is authenticated by a logged in user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStitchAuthRequest.BuilderA builder that can buildStitchAuthRequests.
-
Method Summary
Modifier and Type Method Description StitchAuthRequest.Builderbuilder()Returns a copy of this request in builder form.booleanequals(Object object)booleangetShouldRefreshOnFailure()Returns whether or not the performer of this request should attempt to refresh authentication info on failure.booleangetUseRefreshToken()Returns whether or not a refresh token should be used in this request.inthashCode()-
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:
builderin classStitchRequest- Returns:
- a copy of this request in builder form.
-
equals
public boolean equals(Object object)
- Overrides:
equalsin classStitchRequest
-
hashCode
public int hashCode()
- Overrides:
hashCodein classStitchRequest
-
-