Class XapiLrsCredentialList
The Basic credentials an LRS accepts, see Credentials.
public sealed class XapiLrsCredentialList : Collection<XapiLrsCredential>, IList<XapiLrsCredential>, ICollection<XapiLrsCredential>, IReadOnlyList<XapiLrsCredential>, IReadOnlyCollection<XapiLrsCredential>, IEnumerable<XapiLrsCredential>, IList, ICollection, IEnumerable
- Inheritance
-
XapiLrsCredentialList
- Implements
- Inherited Members
Methods
Add(string, string, params string[])
Adds a credential.
public XapiLrsCredential Add(string key, string secret, params string[] scopes)
Parameters
keystringThe Basic user name.
secretstringThe Basic password.
scopesstring[]The scopes granted, as XapiScopes names. At least one is required.
Returns
- XapiLrsCredential
The added credential.
Add(string, string, Agent, params string[])
Adds a credential that stores statements with the given authority.
public XapiLrsCredential Add(string key, string secret, Agent authority, params string[] scopes)
Parameters
keystringThe Basic user name.
secretstringThe Basic password.
authorityAgentThe authority put on statements stored with this credential.
scopesstring[]The scopes granted, as XapiScopes names. At least one is required.
Returns
- XapiLrsCredential
The added credential.
InsertItem(int, XapiLrsCredential)
Inserts an element into the Collection<T> at the specified index.
protected override void InsertItem(int index, XapiLrsCredential item)
Parameters
indexintThe zero-based index at which
itemshould be inserted.itemXapiLrsCredentialThe object to insert. The value can be null for reference types.
Exceptions
- ArgumentOutOfRangeException
indexis less than zero.-or-
indexis greater than Count.
SetItem(int, XapiLrsCredential)
Replaces the element at the specified index.
protected override void SetItem(int index, XapiLrsCredential item)
Parameters
indexintThe zero-based index of the element to replace.
itemXapiLrsCredentialThe new value for the element at the specified index. The value can be null for reference types.
Exceptions
- ArgumentOutOfRangeException
indexis less than zero.-or-
indexis greater than Count.