The access token class for OAuth 2.0.
Inheritance Hierarchy
Nemiro.OAuth UniValue
Nemiro.OAuth RequestResult
Nemiro.OAuth AccessToken
Nemiro.OAuth OAuth2AccessToken
Namespace: Nemiro.OAuth
Assembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax
The OAuth2AccessToken type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| OAuth2AccessToken |
Initializes a new instance of the OAuth2AccessToken.
| |
| OAuth2AccessToken(RequestResult) |
Initializes a new instance of the OAuth2AccessToken class.
| |
| OAuth2AccessToken(SerializationInfo, StreamingContext) |
Initializes a new instance of the OAuth2AccessToken.
| |
| OAuth2AccessToken(String, String) |
Initializes a new instance of the OAuth2AccessToken class with a specified access token and refresh token.
| |
| OAuth2AccessToken(String, String, String) |
Initializes a new instance of the OAuth2AccessToken class with a specified access token and refresh token.
|
Methods
| Name | Description | |
|---|---|---|
| Add(String, UniValue) |
Adds the specified key and value to the UniValue.
(Inherited from UniValue.) | |
| Add(String, UniValue, UniValue) |
Adds the specified key and value to the UniValue.
(Inherited from UniValue.) | |
| Clone |
Creates a new object that is a copy of the current UniValue instance.
(Inherited from UniValue.) | |
| ContainsAttribute |
Determines whether the Attributes contains the specified key.
(Inherited from UniValue.) | |
| ContainsKey |
Determines whether the CollectionItems contains the specified key.
(Inherited from UniValue.) | |
| Equals(Object) |
Determines whether two object instances are equal.
(Inherited from UniValue.) | |
| Equals(String) |
Determines whether this instance and another specified String object have the same value.
(Inherited from UniValue.) | |
| Equals(UniValue) |
Determines whether two UniValue instances are equal.
(Inherited from UniValue.) | |
| Equals(String, StringComparison) |
Determines whether this string and a specified String object have the same value. A parameter specifies the culture, case, and sort rules used in the comparison.
(Inherited from UniValue.) | |
| Finalize | (Inherited from Object.) | |
| GetAttributes |
Returns a collection of custom attributes for this instance of a component.
(Inherited from UniValue.) | |
| GetClassName |
Returns the class name of this instance of a component.
(Inherited from UniValue.) | |
| GetComponentName |
Returns the name of this instance of a component.
(Inherited from UniValue.) | |
| GetConverter |
Returns a type converter for this instance of a component.
(Inherited from UniValue.) | |
| GetDefaultEvent |
Returns the default event for this instance of a component.
(Inherited from UniValue.) | |
| GetDefaultProperty |
Returns the default property for this instance of a component.
(Inherited from UniValue.) | |
| GetEditor |
Returns an editor of the specified type for this instance of a component.
(Inherited from UniValue.) | |
| GetEnumerator |
Returns an enumerator that iterates through a collection.
(Inherited from UniValue.) | |
| GetEvents |
Returns the events for this instance of a component.
(Inherited from UniValue.) | |
| GetEvents( Attribute ) |
Returns the events for this instance of a component using the specified attribute array as a filter.
(Inherited from UniValue.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from UniValue.) | |
| GetList |
Returns an IList that can be bound to a data source from an object that does not implement an IList itself.
(Inherited from UniValue.) | |
| GetObjectData |
Populates a SerializationInfo with the data needed to serialize the target object.
(Overrides AccessToken GetObjectData(SerializationInfo, StreamingContext).) | |
| GetProperties |
Returns the properties for this instance of a component.
(Inherited from UniValue.) | |
| GetProperties( Attribute ) |
Returns the properties for this instance of a component using the attribute array as a filter.
(Inherited from UniValue.) | |
| GetPropertyOwner |
Returns an object that contains the property described by the specified property descriptor.
(Inherited from UniValue.) | |
| GetType | (Inherited from Object.) | |
| GetTypeCode |
Gets the underlying type code of the Data.
(Inherited from UniValue.) | |
| MemberwiseClone | (Inherited from Object.) | |
| Parse |
Converts the specified string to an OAuth2AccessToken.
| |
| Remove |
Removes the value with the specified key from the UniValue.
(Inherited from UniValue.) | |
| ToBinary | (Inherited from UniValue.) | |
| ToBoolean |
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToByte |
Converts the value this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToChar |
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToDateTime |
Converts the value of this instance to an equivalent DateTime using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToDecimal |
Converts the value of this instance to an equivalent Decimal number using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToDictionary |
Copies items of the UniValue to a new Dictionary<string, object>.
(Inherited from UniValue.) | |
| ToDouble |
Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToInt16 |
Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToInt32 |
Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToInt64 |
Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToNameValueCollection |
Copies items of the UniValue to a new NameValueCollection.
(Inherited from UniValue.) | |
| ToSByte |
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToSingle |
Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToString |
Returns the Value.
(Overrides AccessToken ToString .) | |
| ToString(IFormatProvider) |
Converts the value of this instance to an equivalent String using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToType |
Converts the value of this instance to an Object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToUInt16 |
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToUInt32 |
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.
(Inherited from UniValue.) | |
| ToUInt64 |
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.
(Inherited from UniValue.) |
Operators
| Name | Description | |
|---|---|---|
| (String to OAuth2AccessToken) |
Creates a new OAuthAccessToken instance from String.
| |
| (OAuth2AccessToken to String) |
Converts the OAuth2AccessToken to String.
|
Properties
| Name | Description | |
|---|---|---|
| Attributes |
Gets or sets an attributes of the XML item (only for XML).
(Inherited from UniValue.) | |
| CollectionItems | (Inherited from UniValue.) | |
| ContainsListCollection |
Gets a value indicating whether the collection is a collection of IList objects.
(Inherited from UniValue.) | |
| ContentDisposition |
Gets the Content-Disposition header of the response.
(Inherited from RequestResult.) | |
| ContentType |
Gets or sets the content type of the response.
(Inherited from RequestResult.) | |
| Count |
Gets the number of elements actually contained in the CollectionItems.
(Inherited from UniValue.) | |
| ExpiresIn |
The lifetime in seconds of the access token.
| |
| FileName |
Gets the file name, if Result is file.
(Inherited from RequestResult.) | |
| HasAttributes |
Gets a value indicating whether the current UniValue object has an attributes (only for xml data type).
(Inherited from UniValue.) | |
| HasValue |
Gets a value indicating whether the current UniValue object has a value.
(Inherited from UniValue.) | |
| HttpHeaders |
Gets or sets the http headers of the response.
(Inherited from RequestResult.) | |
| IsArray | Obsolete.
Gets a value indicating the Result is array or not.
(Inherited from RequestResult.) | |
| IsBinary | (Inherited from UniValue.) | |
| IsBoolean | (Inherited from UniValue.) | |
| IsCollection |
Gets a value that indicates whether the data type of the UniValue is equal to UniValueCollection.
(Inherited from UniValue.) | |
| IsDateTime | (Inherited from UniValue.) | |
| IsDictionary | Obsolete.
Gets a value indicating the Result is Dictionary TKey, TValue or not.
(Inherited from RequestResult.) | |
| IsEmpty |
Gets a value indicating whether the AccessToken is empty or not.
(Inherited from AccessToken.) | |
| IsFile |
Gets a value indicating the Result is file or not.
(Inherited from RequestResult.) | |
| IsNameValueCollection | Obsolete.
Gets a value indicating the Result is NameValueCollection or not.
(Inherited from RequestResult.) | |
| IsNumeric |
Gets a value that indicates whether the data type of the UniValue is equal to numeric type.
(Inherited from UniValue.) | |
| IsString | (Inherited from UniValue.) | |
| IsSuccessfully |
Gets a value indicating whether the current request result is successful or not.
(Inherited from RequestResult.) | |
| IsValue | (Inherited from UniValue.) | |
| IsXml | Obsolete.
Gets a value indicating the Result is XML or not.
(Inherited from RequestResult.) | |
| Item Int32 |
Gets the value associated with the specified index of the CollectionItems.
(Inherited from UniValue.) | |
| Item String |
Gets the value associated with the specified key of the CollectionItems.
(Inherited from UniValue.) | |
| Key |
Gets or sets the key for the current item, if the current item included into the collection.
(Inherited from UniValue.) | |
| Parent |
The parent of the current item, if the current item included into the collection.
(Inherited from UniValue.) | |
| RefreshToken |
The refresh token, which can be used to obtain new
access tokens using the same authorization grant.
| |
| Result | Obsolete.
Gets or sets the processed result of the response.
(Inherited from RequestResult.) | |
| Scope |
The scope of the access token.
| |
| Source |
Gets or sets the source of the response.
(Inherited from RequestResult.) | |
| StatusCode |
Gets or sets the HTTP status code of the output returned to the client.
(Inherited from RequestResult.) | |
| TokenType |
The type of the token issued. Value is case insensitive.
| |
| Value |
The access token issued by the authorization server.
|
See Also