ykman.oath

Attributes

STEAM_CHAR_TABLE

Functions

is_hidden(credential)

Check if OATH credential is hidden.

is_steam(credential)

Check if OATH credential is steam.

calculate_steam(app, credential[, timestamp])

Calculate steam codes.

is_in_fips_mode(app)

Check if OATH application is in FIPS mode.

delete_broken_credential(app)

Checks for credential in a broken state and deletes it.

Module Contents

ykman.oath.STEAM_CHAR_TABLE = '23456789BCDFGHJKMNPQRTVWXY'
ykman.oath.is_hidden(credential)[source]

Check if OATH credential is hidden.

Parameters:

credential (yubikit.oath.Credential)

Return type:

bool

ykman.oath.is_steam(credential)[source]

Check if OATH credential is steam.

Parameters:

credential (yubikit.oath.Credential)

Return type:

bool

ykman.oath.calculate_steam(app, credential, timestamp=None)[source]

Calculate steam codes.

Parameters:
Return type:

str

ykman.oath.is_in_fips_mode(app)[source]

Check if OATH application is in FIPS mode.

Parameters:

app (yubikit.oath.OathSession)

Return type:

bool

ykman.oath.delete_broken_credential(app)[source]

Checks for credential in a broken state and deletes it.

Parameters:

app (yubikit.oath.OathSession)

Return type:

bool