Represents the Token binding information provided by the relying party.
See TokenBinding data structure in WebAuthn and TokenBindingId
| enum | TokenBinding.TokenBindingStatus | The token binding status specified by the client. | |
| class | TokenBinding.UnsupportedTokenBindingStatusException | Exception thrown when an unsupported or
unrecognized
TokenBinding.TokenBindingStatus is encountered. |
|
| public static final TokenBinding | NOT_SUPPORTED | A singleton instance representing that token binding is not supported by the client. |
| public static final TokenBinding | SUPPORTED | A singleton instance representing that token binding is supported by the client, but unused by the relying party. |
|
TokenBinding(String
tokenBindingId)
Constructs an instance of a
TokenBinding for a provided token binding id.
|
| boolean | |
| String |
getTokenBindingId()
Returns the token binding ID if the token binding status is
PRESENT, otherwise returns null.
|
| String |
getTokenBindingStatusAsString()
Returns the stringified
TokenBinding.TokenBindingStatus associated with this instance.
|
| int |
hashCode()
|
| JSONObject |
toJsonObject()
Returns this
TokenBinding object as a JSONObject.
|
| void |
writeToParcel(Parcel dest, int
flags)
|
A singleton instance representing that token binding is not supported by the client.
A singleton instance representing that token binding is supported by the client, but unused by the relying party.
Constructs an instance of a TokenBinding
for a provided token binding id.
Returns the token binding ID if the token binding status is PRESENT,
otherwise returns null.
Returns the stringified
TokenBinding.TokenBindingStatus associated with this instance.
Returns this TokenBinding
object as a JSONObject.
| JSONException |
|---|