UserAuth

data class UserAuth(val intValue: Asn1Integer) : AuthorizationList.IntEncodable(source)

As per the KeyMaster AIDL

  • NONE is modelled as empty set.

  • ANY has a distinct representation as a set containing only the Type.ANY element

If you want to set multiple flags, just or them togehter. It will produce the expected intValue: UserAuth(Type.PASSWORD or Type.FINGERPRINT)

Constructors

Link copied to clipboard
constructor(intValue: Asn1Integer)

Creates a UserAuth instance from a single Type value.

Types

Link copied to clipboard
object Tag : AuthorizationList.Tagged, Asn1Decodable<Asn1Primitive, AuthorizationList.UserAuth>
Link copied to clipboard

Decomposed hardware authenticator type flags.

Properties

Link copied to clipboard
Link copied to clipboard
open override val intValue: Asn1Integer
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>
Link copied to clipboard
open override fun encodeToTlv(): Asn1Primitive
Link copied to clipboard
open fun encodeToTlvOrNull(): Asn1Primitive?
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Primitive>
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open infix fun withImplicitTag(tag: Asn1Element.Tag): Asn1Element
open infix fun withImplicitTag(template: Asn1Element.Tag.Template): Asn1Element
open infix fun withImplicitTag(tagValue: ULong): Asn1Element