Webcom Android SDK Public API Reference / com.orange.webcom.jwe / JWTPayloadExtractor

JWTPayloadExtractor

class JWTPayloadExtractor

Constructors

<init>

JWTPayloadExtractor(token: String)

Functions

extractPayload

fun extractPayload(): WebcomResult<String>
fun extractPayload(keyId: String): WebcomResult<String>

Companion Object Properties

CIPHER_KEY_ALIAS_SUFFIX

const val CIPHER_KEY_ALIAS_SUFFIX: String

MAC_KEY_ALIAS_SUFFIX

const val MAC_KEY_ALIAS_SUFFIX: String

Companion Object Functions

getKeyPairFromKeyStore

fun getKeyPairFromKeyStore(keyId: String): Pair<Key, Key>?

putKeyPairInKeyStore

fun putKeyPairInKeyStore(keyId: String, macKey: SecretKey, cipherKey: SecretKey): Unit