Package com.yubico.webauthn.data
Class CollectedClientData
- java.lang.Object
-
- com.yubico.webauthn.data.CollectedClientData
-
public final class CollectedClientData extends java.lang.Object
The 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 boolean
equals(java.lang.Object o)
@NonNull ByteArray
getChallenge()
The base64url encoding of the challenge provided by the Relying Party.@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.java.util.Optional<TokenBindingInfo>
getTokenBinding()
Information about the state of the Token Binding protocol used when communicating with the Relying Party.@NonNull java.lang.String
getType()
The type of the requested operation, set by the client.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CollectedClientData
public CollectedClientData(@NonNull @NonNull ByteArray clientDataJSON) throws java.io.IOException, Base64UrlException
- Throws:
java.io.IOException
Base64UrlException
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-