Package com.yubico.webauthn.data
Class CollectedClientData
- java.lang.Object
-
- com.yubico.webauthn.data.CollectedClientData
-
public final class CollectedClientData extends java.lang.ObjectThe client data represents the contextual bindings of both the Relying Party and the client.
-
-
Constructor Summary
Constructors Constructor Description CollectedClientData(@NonNull ByteArray clientDataJSON)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@NonNull ByteArraygetChallenge()The base64url encoding of the challenge provided by the Relying Party.@NonNull java.lang.StringgetOrigin()The fully qualified origin of the requester, as provided to the authenticator by the client, in the syntax defined by RFC 6454.java.util.Optional<TokenBindingInfo>getTokenBinding()Information about the state of the Token Binding protocol used when communicating with the Relying Party.@NonNull java.lang.StringgetType()The type of the requested operation, set by the client.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
CollectedClientData
public CollectedClientData(@NonNull @NonNull ByteArray clientDataJSON) throws java.io.IOException, Base64UrlException- Throws:
java.io.IOExceptionBase64UrlException
-
-
Method Detail
-
getTokenBinding
public final java.util.Optional<TokenBindingInfo> getTokenBinding()
Information about the state of the Token Binding protocol used when communicating with the Relying Party. Its absence indicates that the client doesn't support token binding.
-
getChallenge
@NonNull public @NonNull ByteArray getChallenge()
The base64url encoding of the challenge provided by the Relying Party. See the §13.1 Cryptographic Challenges security consideration.
-
getOrigin
@NonNull public @NonNull java.lang.String getOrigin()
The fully qualified origin of the requester, as provided to the authenticator by the client, in the syntax defined by RFC 6454.
-
getType
@NonNull public @NonNull java.lang.String getType()
The type of the requested operation, set by the client.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-