Skip to main content

Class TokenEntry

Namespace: Consul
Assembly: Consul.dll

TokenEntry is used to represent an ACL Token in Consul

public class TokenEntry

Inheritance

objectTokenEntry

Inherited Members

object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Constructors

TokenEntry()

public TokenEntry()
public TokenEntry(string description, PolicyLink[] policies)

Parameters

description string

policies PolicyLink []

public TokenEntry(string description, RoleLink[] roles)

Parameters

description string

roles RoleLink []

TokenEntry(string, ServiceIdentity[])

public TokenEntry(string description, ServiceIdentity[] serviceIdentities)

Parameters

description string

serviceIdentities ServiceIdentity []

TokenEntry(string, string)

public TokenEntry(string accessorId, string description)

Parameters

accessorId string

description string

public TokenEntry(string accessorId, string description, PolicyLink[] policies, RoleLink[] roles, ServiceIdentity[] serviceIdentities)

Parameters

accessorId string

description string

policies PolicyLink []

roles RoleLink []

serviceIdentities ServiceIdentity []

Properties

AccessorID

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string AccessorID { get; set; }

Property Value

string

AuthMethod

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string AuthMethod { get; set; }

Property Value

string

Description

public string Description { get; set; }

Property Value

string

Local

public bool Local { get; set; }

Property Value

bool

Policies

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public PolicyLink[] Policies { get; set; }

Property Value

PolicyLink []

Roles

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RoleLink[] Roles { get; set; }

Property Value

RoleLink []

SecretID

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string SecretID { get; set; }

Property Value

string

ServiceIdentities

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public ServiceIdentity[] ServiceIdentities { get; set; }

Property Value

ServiceIdentity []

Methods

ShouldSerializeCreateIndex()

public static bool ShouldSerializeCreateIndex()

Returns

bool

ShouldSerializeModifyIndex()

public static bool ShouldSerializeModifyIndex()

Returns

bool

  • Constructors
    • TokenEntry()
    • TokenEntry(string, PolicyLink[])
    • TokenEntry(string, RoleLink[])
    • TokenEntry(string, ServiceIdentity[])
    • TokenEntry(string, string)
    • TokenEntry(string, string, PolicyLink[], RoleLink[], ServiceIdentity[])
  • Properties
    • AccessorID
    • AuthMethod
    • Description
    • Local
    • Policies
    • Roles
    • SecretID
    • ServiceIdentities
  • Methods
    • ShouldSerializeCreateIndex()
    • ShouldSerializeModifyIndex()