DPoPKeyManager

Properties

Link copied to clipboard

RFC 9449 token type string. Case-sensitive per the spec. Single source of truth — OAuth2.java references this constant rather than redefining the literal.

Functions

Link copied to clipboard
fun deleteKeyPair(alias: String)
Link copied to clipboard
Link copied to clipboard

Returns true iff a key pair is already present in the AndroidKeyStore for the given alias. Side-effect-free — does NOT mint a key pair on miss.

Link copied to clipboard
fun hasKeyPairForCredentialsIdentifier(credentialsIdentifier: String?): Boolean

Convenience overload — computes the alias for credentialsIdentifier and calls hasKeyPair.

Link copied to clipboard
fun shouldAttachDPoP(credentialsIdentifier: String?, tokenType: String?): Boolean

Decides whether a DPoP proof should be attached to a request for a credential identified by credentialsIdentifier.