Class Scope
- java.lang.Object
-
- com.amazon.A3L.authentication.common.api.Scope
-
- All Implemented Interfaces:
android.os.Parcelable
public class Scope extends java.lang.Object implements android.os.Parcelable
Describes an OAuth 2.0 scope to request. This has security implications for the user, and requesting additional scopes will result in authorization dialogs.
-
-
Constructor Summary
Constructors Constructor Description Scope(java.lang.String scopeUri)
Creates a new scope with the given URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.boolean
equals(java.lang.Object scope)
int
hashCode()
java.lang.String
toString()
Returns scope uri for the Scopevoid
writeToParcel(android.os.Parcel parcel, int i)
Flatten this object in to a Parcel.
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<Scope> CREATOR
-
-
Method Detail
-
describeContents
public int describeContents()
Description copied from interface:android.os.Parcelable
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output ofParcelable.writeToParcel(Parcel, int)
, the return value of this method must include theParcelable.CONTENTS_FILE_DESCRIPTOR
bit.- Specified by:
describeContents
in interfaceandroid.os.Parcelable
- Returns:
- a bitmask indicating the set of special object types marshaled by this Parcelable object instance.
-
writeToParcel
public void writeToParcel(@NonNull android.os.Parcel parcel, int i)
Description copied from interface:android.os.Parcelable
Flatten this object in to a Parcel.- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
- Parameters:
parcel
- The Parcel in which the object should be written.i
- Additional flags about how the object should be written. May be 0 orParcelable.PARCELABLE_WRITE_RETURN_VALUE
.
-
equals
public boolean equals(@Nullable java.lang.Object scope)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@NonNull public java.lang.String toString()
Returns scope uri for the Scope- Overrides:
toString
in classjava.lang.Object
- Returns:
- String: Scope Uri
-
-