# KsefAuthentication

One authentication operation and its temporary token, bound to its originating client.

Class 

`OfficeIMO.Invoicing.KSeF`

**Namespace**

`OfficeIMO.Invoicing.KSeF`

**Assembly**

`OfficeIMO.Invoicing.KSeF`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[KsefCredentials.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefCredentials.cs#L16)

**Implements**

`IDisposable`

**Modifiers**

sealed

One authentication operation and its temporary token, bound to its originating client.

## Inheritance

- object
- KsefAuthentication

## Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Method [KsefClient.BeginTokenAuthenticationAsync](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefclient/#method-begintokenauthenticationasync-officeimo-invoicing-ksef-ksefcontext-officeimo-invoicing-ksef-ksefsecret-threading-cancellationtoken)

### Accepted by parameters 2

- Method [KsefClient.GetAuthenticationStatusAsync](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefclient/#method-getauthenticationstatusasync-officeimo-invoicing-ksef-ksefauthentication-threading-cancellationtoken) parameter `authentication`
- Method [KsefClient.RedeemAsync](/api/invoicing-ksef/officeimo-invoicing-ksef-ksefclient/#method-redeemasync-officeimo-invoicing-ksef-ksefauthentication-threading-cancellationtoken) parameter `authentication`

Filter members 

Show inherited

## Methods

`public void Dispose()` [#](#method-dispose)

[KsefCredentials.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefCredentials.cs#L16)

Clears the owned temporary token.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string ReferenceNumber { get; }` [#](#property-referencenumber)

[KsefCredentials.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefCredentials.cs#L12)

Authentication operation reference.

`public DateTimeOffset ValidUntil { get; }` [#](#property-validuntil)

[KsefCredentials.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Invoicing.KSeF/KsefCredentials.cs#L14)

Temporary authentication-token expiration.

<!-- PowerForge markdown artifact sha256:68B20C0CE7359C2016E96461AC1E5F765ABD39BDC9ED6ED9FF91DBE5DFD5AEE7 -->
