Class AAGUID

java.lang.Object
com.yubico.fido.metadata.AAGUID

public final class AAGUID extends 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].

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct an AAGUID from its raw binary representation.
  • Method Summary

    Modifier and Type
    Method
    Description
    The 16-byte binary representation of this AAGUID, for example 7a98c250680811cfb73b00aa00b677a7 when hex-encoded.
    The 36-character string representation of this AAGUID, for example "7a98c250-6808-11cf-b73b-00aa00b677a7".
    The 32-character hexadecimal representation of this AAGUID, for example "7a98c250680811cfb73b00aa00b677a7".
    boolean
     
    int
     
    boolean
    true if and only if this AAGUID consists of all zeroes.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AAGUID

      public AAGUID(ByteArray value)
      Construct an AAGUID from its raw binary representation.

      This is the inverse of asBytes().

      Parameters:
      value - a ByteArray of length exactly 16.
  • Method Details

    • asBytes

      public ByteArray asBytes()
      The 16-byte binary representation of this AAGUID, for example 7a98c250680811cfb73b00aa00b677a7 when hex-encoded.

      This is the inverse of AAGUID(ByteArray).

    • asHexString

      public String asHexString()
      The 32-character hexadecimal representation of this AAGUID, for example "7a98c250680811cfb73b00aa00b677a7".
    • asGuidString

      public 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 this AAGUID consists of all zeroes. This typically indicates that an authenticator has no AAGUID, or that the AAGUID has been redacted.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object