Represents the Token binding information provided by the relying party.
See TokenBinding data structure in WebAuthn and TokenBindingId
Nested Class Summary
| 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. |
|
Inherited Constant Summary
Field Summary
| 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. |
Public Constructor Summary
|
TokenBinding(String
tokenBindingId)
Constructs an instance of a
TokenBinding for a provided token binding id.
|
Public Method Summary
| 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)
|
Inherited Method Summary
Fields
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.
Public Constructors
public TokenBinding (String tokenBindingId)
Constructs an instance of a TokenBinding
for a provided token binding id.
Public Methods
public boolean equals (Object obj)
public String getTokenBindingId ()
Returns the token binding ID if the token binding status is PRESENT,
otherwise returns null.
public String getTokenBindingStatusAsString ()
Returns the stringified
TokenBinding.TokenBindingStatus associated with this instance.
public int hashCode ()
public JSONObject toJsonObject ()
Returns this TokenBinding
object as a JSONObject.
Throws
| JSONException |
|---|