Package com.yubico.fido.metadata
Class AAGUID
- java.lang.Object
-
- com.yubico.fido.metadata.AAGUID
-
public final class AAGUID extends java.lang.Object
Some authenticators have an AAGUID, which is a 128-bit identifier that indicates the type (e.g. make and model) of the authenticator. The AAGUID MUST be chosen by the manufacturer to be identical across all substantially identical authenticators made by that manufacturer, and different (with probability 1-2-128 or greater) from the AAGUIDs of all other types of authenticators.The AAGUID is represented as a string (e.g. "7a98c250-6808-11cf-b73b-00aa00b677a7") consisting of 5 hex strings separated by a dash ("-"), see [RFC4122].
-
-
Constructor Summary
Constructors Constructor Description AAGUID(com.yubico.webauthn.data.ByteArray value)
Construct an AAGUID from its raw binary representation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yubico.webauthn.data.ByteArray
asBytes()
The 16-byte binary representation of this AAGUID, for example7a98c250680811cfb73b00aa00b677a7
when hex-encoded.java.lang.String
asGuidString()
The 36-character string representation of this AAGUID, for example"7a98c250-6808-11cf-b73b-00aa00b677a7"
.java.lang.String
asHexString()
The 32-character hexadecimal representation of this AAGUID, for example"7a98c250680811cfb73b00aa00b677a7"
.boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isZero()
true
if and only if thisAAGUID
consists of all zeroes.java.lang.String
toString()
-
-
-
Constructor Detail
-
AAGUID
public AAGUID(com.yubico.webauthn.data.ByteArray value)
Construct an AAGUID from its raw binary representation.This is the inverse of
asBytes()
.- Parameters:
value
- aByteArray
of length exactly 16.
-
-
Method Detail
-
asBytes
public com.yubico.webauthn.data.ByteArray asBytes()
The 16-byte binary representation of this AAGUID, for example7a98c250680811cfb73b00aa00b677a7
when hex-encoded.This is the inverse of
AAGUID(ByteArray)
.
-
asHexString
public java.lang.String asHexString()
The 32-character hexadecimal representation of this AAGUID, for example"7a98c250680811cfb73b00aa00b677a7"
.
-
asGuidString
public java.lang.String asGuidString()
The 36-character string representation of this AAGUID, for example"7a98c250-6808-11cf-b73b-00aa00b677a7"
.
-
isZero
public boolean isZero()
true
if and only if thisAAGUID
consists of all zeroes. This typically indicates that an authenticator has no AAGUID, or that the AAGUID has been redacted.
-
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
-
-